tags:

views:

135

answers:

3

I am downscaling images from 200px wide to 190px wide, with this class

here is what i getalt text

img 1 = original - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - img 2 = smaller

I've tried a few different widths but i get the same loss of sharpness/blurring with all image sizes. I have quality set to 100 (max)

A: 

Which method are you using imagecopyresampled or imagecopyresized? imagecopyresampled gives better results. Also consider Imagemagick library if possible: http://pecl.php.net/package/imagick

Piotr Pankowski
im using imagecopyresampled, have updated post with missing link to the class im using..
Haroldo
then the only way you're going to achieve better quality is by using imagemagick as Piotr suggested
MartinodF
imagick looks like a real ball ache... there's no way i can improve the quality i'm getting with GD?
Haroldo
No :/ Every person I know ended using imagemagick.
Piotr Pankowski
A: 

$compression=75

Change that to 90 and see if results are satisfactory. In any case, the images will be blurry but increasing $compression (should actually be called $quality) should help a tad bit.

Salman A
in the question: "quality is set to 100 (max)"
Haroldo
A: 

have you tried using timthumb?

http://code.google.com/p/timthumb/source/browse/trunk/timthumb.php

Working on the same-ish problem, using this as a base.

orwhal
Nope, looks interesting... Can't tell if it uses GD?
Haroldo
uses GD - imagecreatetruecolor() is dependent on that library.
orwhal