jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

Colors are changed when using Client-Side image resize

Open cb-eli opened this issue 4 years ago • 1 comments

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: 20_Nis_Rogue_Sport-039-source

Here is the result after uploaded to your demo site (which using 'imageMaxWidth' and 'imageMaxHeight'):

cb-eli avatar Jun 18 '20 10:06 cb-eli

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.

blueimp avatar Jun 20 '20 10:06 blueimp