Skip to content

Conversation

@jtomson
Copy link

@jtomson jtomson commented Jun 26, 2025

For some reason when imgproxy converts a source image from heic to png prior to invoking the dither test.py, the resulting image is much more muted and yellow than expected when running the image locally.

This may have something to do with the PNG options used by default

imgproxy/vips/vips.go

Lines 372 to 376 in 44fdf48

switch imgtype {
case imagetype.JPEG:
err = C.vips_jpegsave_go(img.VipsImage, &ptr, &imgsize, C.int(quality), vipsConf.JpegProgressive)
case imagetype.PNG:
err = C.vips_pngsave_go(img.VipsImage, &ptr, &imgsize, vipsConf.PngInterlaced, vipsConf.PngQuantize, vipsConf.PngQuantizationColors)

Working around this by converting from source -> jpg before invoking the dither test.py, which does the trick.

@jtomson
Copy link
Author

jtomson commented Jun 27, 2025

Closing in favor of #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants