MattWilcox/Adaptive-Images — pull request #94 by CatoTH (2012-12-30 13:13:53+00:00)
Title: Convert color profiles in JPEG into sRGB

I encountered a problem with Adaptive Images when using it for Jpeg files that have an embedded color profile. The color profile is lost, as this seems to be not yet supported by the GD library, changing the displayed colors. The problem can be seen here: http://adaptive.hoessl.eu/ ; the upper image is the original, the lower one is converted image; the bright red color has changed into something rather brownish.
The only solution I found to this problem was to use an external programm to convert the images into sRGB; the proposed patch uses the program "jpegicc".