Source Image (Note: Browser will likely not render colors correctly (they will be desaturated), this is probably related to the issue):
Output of pngquant --nofs test.png :

Output of magick test.png +dither PNG8:magickout.png:
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
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.
Source Image (Note: Browser will likely not render colors correctly (they will be desaturated), this is probably related to the issue):
Output of

pngquant --nofs test.png:Output of
magick test.png +dither PNG8:magickout.png:I am not sure what exaclty the problem is, the source image was created with this command:
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.
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.