MattWilcox / Adaptive-Images

Automatically adapts your existing HTML images for mobile devices. No mark-up changes needed.
http://adaptive-images.com/
1.76k stars 229 forks source link

prevent artefacts in white areas #195

Open bernhardriegler opened 8 years ago

bernhardriegler commented 8 years ago

A similar issue described here: http://stackoverflow.com/questions/23993901/imagecopyresampled-introduces-artifacts-in-transparent-png

Although this is happening to me too, if i use a jpeg with large white areas. The result does contain grey atrifacts rgb(255,255,254), where only white rgb(255,255,255) should be.

Inverting the image before resizing and inverting it back to normal does fix the issue for me.