Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Colors are changed when using Client-Side image resize #3654

Open
cb-eli opened this issue Jun 18, 2020 · 1 comment
Open

Colors are changed when using Client-Side image resize #3654

cb-eli opened this issue Jun 18, 2020 · 1 comment
Labels

Comments

@cb-eli
Copy link

cb-eli commented Jun 18, 2020

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'):

@blueimp
Copy link
Owner

blueimp commented Jun 20, 2020

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: blueimp/JavaScript-Load-Image#105

P.S.:
your second example linked to an image uploaded using the demo, which does not store images longer than 5 minutes.

@blueimp blueimp added the bug label Jul 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants