Handling of large size PNG
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- computer-graphics
Research direction
Start by investigating the svg2png conversion path and how Cairo reports CAIRO_STATUS_INVALID_SIZE for the requested 81k by 7k output. Determine whether CairoSVG can support that size or whether splitting the rendered result is required; done means a clearly defined supported behavior for oversized PNG output.
Written by the indexing model from the issue text.
Description
Hello there, I'm trying to convert to PNG a SVG file. The output PNG file should be roughly 81k width for 7k height, however Cairo returns a CAIRO_STATUS_INVALID_SIZE when the output PNG file would be above 32k*32k. If I set the scale to 0.4 or the dpi to 35 I manage to get a pixelated version of my SVG with a width under 32k but that's not precise enough for my uses. I guess the 32k*32k limitation is a memory one since the PNG format itself is not limitated in height/width. 81k*7k is half of 32k*32k so it should be ok in terms of memory. Is there then a mean to tune the call/the library to allows it ? Or, if not, to output in several PNG files if the initial SVG size is too big (PNG that could be merged later) ? I don't know if a tool exists that can split SVG so that I could feed them to svg2png and then somewhat merge the PNG files. That's what I trying to do right now, but it seems more logic to split the PNG files than the SVG files (pixels vs xml), hence this issue. Thank you !
EDIT : or maybe there's a way to get a compressed PNG as output if the size is too much (I don't know much about the PNG format, that may be dumb).
- Dominant language
- Python
- Stars
- 959
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Kozea/CairoSVG
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
并发下的渲染表现Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Exception "The SVG size is undefined" raised using svg2pngPossibly taken @DSeaStar claimed this 111 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Techiebutler/freeframe#687 ·
Maintainers usually reply within 1 day
-
bug verbose GC
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IBM/javacore-analyser#677 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#163932 · 1 comment ·
Maintainers usually reply within 1 day
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's filePossibly taken @Beehtrix claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#907 · 1 comment ·
Maintainers usually reply within 1 day