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.
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
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
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.
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.
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!