jQuery-File-Upload
jQuery-File-Upload copied to clipboard
Colors are changed when using Client-Side image resize
Hello,
When I'm uploading the attached photo and resizing the image using the 'imageMaxWidth' and 'imageMaxHeight' options, the image's colors are changed.
When I'm not using the above options or set them to 'Number.MAX_SAFE_INTEGER', the colors are the same as the original image.
Here is the original image:
Here is the result after uploaded to your demo site (which using 'imageMaxWidth' and 'imageMaxHeight'):
Thanks for your report @cb-eli.
jQuery File Upload uses the blueimp-load-image library for client-size image resizing.
Your sample picture contains an ICC profile - Kodak ProPhoto RGB - which is retained in the resized image, but not correctly applied anymore.
There is already a related issue for this: https://github.com/blueimp/JavaScript-Load-Image/issues/105
P.S.: your second example linked to an image uploaded using the demo, which does not store images longer than 5 minutes.