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.
Yes, I see what you mean. I did a few tests, and it might be in fact a normal behaviour. I tried to upsize your test image that I first converted as JPEG, and even though, the resized image ends up pixelated.
Even copying the GIF image resource into a JPEG image resource prior to resampling doesn't solve the problem.
I'll keep looking, but I am not sure that there will be a solution. Still, you can apply a blur filter to the resulting image.Reply
Re: Converting of .gif files to jpg dont look right new!
In photoshop you have to turn the image into RGB (truecolor) first before it will correctly scale up without pixalating, I dont know if that info helps.
I havent tried doing it in GD for awhile but I might give that a go and let you know what happens.
Yes, it is what I did, turn it into RGB mode before upsclaing it. In fact, I use The GIMP, which gives the same results as Photoshop.
It seems to me that GD might not be able to convert the color space from palette to RGB. I tried a few things, but always ended up with the same result. Alternatively, maybe the color space is converted to RGB, but the resize routine of GD are basic, and don't apply that "blur filter".
I also try with a bi-cubic resampling function, but downscaling looks bad, and upscaling looks the same (pixelated).Reply
Re: Converting of .gif files to jpg dont look right new!
Even copying the GIF image resource into a JPEG image resource prior to resampling doesn't solve the problem.
I'll keep looking, but I am not sure that there will be a solution. Still, you can apply a blur filter to the resulting image.
In photoshop you have to turn the image into RGB (truecolor) first before it will correctly scale up without pixalating, I dont know if that info helps.
I havent tried doing it in GD for awhile but I might give that a go and let you know what happens.
Thanks,
Fusey
It seems to me that GD might not be able to convert the color space from palette to RGB. I tried a few things, but always ended up with the same result. Alternatively, maybe the color space is converted to RGB, but the resize routine of GD are basic, and don't apply that "blur filter".
I also try with a bi-cubic resampling function, but downscaling looks bad, and upscaling looks the same (pixelated).
It's not a major issue for me as hopefully everyone will upload at my preset size anyway.
Love the class, keep up the good work :)
PS. the new resize and crop function rocks!
Fusey