Converting of .gif files to jpg dont look right

See all posts Reply

Converting of .gif files to jpg dont look right new!
by Fusey, 17 years, 6 months ago
Hello :)

When I use the convert function to convert a gif into a jpeg, the results dont look very good. See below:

Original:
http://213.130.128.198/files/orig.gif

After convert:
http://213.130.128.198/files/resized.jpg

Wanted result (from photoshop):
http://213.130.128.198/files/wanted.jpg

Any ideas what the problem is? Looks like it might not be resampling the image properly?

Thanks!

FuseyReply
Re: Converting of .gif files to jpg dont look right new!
by colin, 17 years, 6 months ago
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!
by Fusey, 17 years, 6 months ago
Thanks for the reply.

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,

FuseyReply
Re: Converting of .gif files to jpg dont look right new!
by colin, 17 years, 6 months ago
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!
by Fusey, 17 years, 6 months ago
Thanks for looking into it man :)

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!

FuseyReply