Skip to content

Getting bad color results compared to imagemagick #424

@Rabcor

Description

@Rabcor

Source Image (Note: Browser will likely not render colors correctly (they will be desaturated), this is probably related to the issue):

Image

Output of pngquant --nofs test.png :
Image

Output of magick test.png +dither PNG8:magickout.png:

Image

I am not sure what exaclty the problem is, the source image was created with this command:

ffmpeg -ss 1 -i in.mp4 -frames:v 1 -pix_fmt rgb24 test.png

However what I noticed is that if I simply pass the image through imagemagick first before passing it through pngquant, I get correct results (better than former magick example) with pngquant.

magick test.png test2.png
pngquant --nofs test2.png
Image

So there is some step that imagemagick takes to fix an issue with the PNG that pngquant is not taking which is causing this issue, I'm not entirely sure what though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions