gamernetwork / mod_dims

On-demand image filtering module for Apache.
Other
4 stars 2 forks source link

Improve the way PNGs are converted to JPG #2

Open craigymunro opened 9 years ago

craigymunro commented 9 years ago

If you have a PNG with transparencies and then run it through a JPG conversion the image often contains graphical glitches. Here's an example:

Original: https://images.eurogamer.net/2014/gamersedition/papers-please/poster.png

Corrupted: https://images.eurogamer.net/2014/gamersedition/papers-please/poster.png/EG11/format/jpg

Is there anything we can do to improve the way it's flattened? Maybe always matte it to a white background?

craigymunro commented 9 years ago

Here is another example.

Original: https://images.eurogamer.net/2014/craig/XboxOne_Controller_620.png

Corrupted: https://images.eurogamer.net/2014/craig/XboxOne_Controller_620.png/EG11/format/jpg