class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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?
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
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.
is it possible it has something to do with jpeg_quality, i see its default 85.
Thanks!