I'm trying my best to find a good way to scale images and keep the quality.

Currently, I'm using the imagejpeg() function, and it just plain sucks. Even if I set the quality at 100 instead of the default 75%, it still looks really crappy. Has anyone here got a good method of scaling images in GD2 while keeping high quality results?

I'm using (php4.3, apache, linux)

    I have found that imagecopyresampled is very good and I think imagecopyresize is also good.

    Damien

      I found it varies on different servers depending on what version of GD they have installed.

      either

      imagecreatetruecolor() with imagecopyresampled()

      or

      imagecreatejpeg() with imagecopyresized()

      seem to work fine.

        Write a Reply...