Changes color on upload

See all posts See thread Reply

Re: Changes color on upload new!
by colin, 11 years, 5 months ago
Could you send me on example of original image, and its processed version?

Generally speaking, if you manipulate images (with GD, which the class uses), you may loose some quality. Any resizing, recompression, etc... induces a quality loss.Reply
Re: Changes color on upload new!
by Halffull, 11 years, 5 months ago
http://i40.tinypic.com/xree1.jpg

Original:

http://i41.tinypic.com/2z6cze9.jpg


You see it the best if you look at the trees. the original is much briter.
I have tryd changin convert file to jpg but same result.Reply
Re: Changes color on upload new!
by Halffull, 11 years, 5 months ago
I gues tinypic is useing the same script cause it is converted there to, can i send it with e-mail?Reply
Re: Changes color on upload new!
by colin, 11 years, 5 months ago
I's OK, I can see the difference of colors (you can display the raw image in tinypic).

In your original JPEG, do you have a color profile (like sRGB and Adobe RGB)?

In any case, you will loose some quality. But I would have expected that it wouldn't change the colors so much.Reply
Re: Changes color on upload new!
by Halffull, 11 years, 5 months ago
How can i check if i have a color profile?
is it possible it has something to do with jpeg_quality, i see its default 85.Reply
Re: Changes color on upload new!
by Halffull, 11 years, 5 months ago
it says sRGB i gues this is what you meant.Reply
Re: Changes color on upload new!
by colin, 11 years, 5 months ago
You can certainly try to increase the JPEG quality setting.Reply
Re: Changes color on upload new!
by Willem, 9 years, 9 months ago
Hi, I have been using your upload class with a lot of pleasure! But just the other day I noticed color changes after the create thumbnail function did it's thing. Turns out the file is stripped of its color profile (Adobe RGB). Is there any way to preserve the color profile after the image is resized?

Thanks!Reply
Re: Changes color on upload new!
by colin, 9 years, 9 months ago
I am afraid the class (GD in fact) doesn't take the color profile into account. The class cannot deal with it as of now, but it could be implemented in the future, using such code as this.Reply