Replies: 1 comment 1 reply
-
Heuy @osfa, I've never tried it on an image that large, you're unlikely to get a good result, I'd think. I tried a few sizes here -- 20,000 x 20,000 works (and needs 2gb), 20,000 x 30,000 fails. Maybe you're hitting an int overflow inside the palette optimiser? It would be better to downsize to something small (1000 x 1000?), quantise that, then extract the palette and use that to dither the full-res image. Sadly this isn't supported by libvips right now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Trying to convert a large 28800 × 64800px jpeg to 8 color palette png and getting "quantisation failed". Works with a much smaller image so somehow related to image size? Any ideas on how to get a better error out of this? pretty sure I'm not ooming with what mem-usage.
Environment
Beta Was this translation helpful? Give feedback.
All reactions