1

I'm using gd2 lib to work with images. I need to change resolution of image, still I cant find a method for that in a list of methods. How that can be done?

Thank you in advance

Eugeny89
  • 3,797
  • 7
  • 51
  • 98

1 Answers1

4

Use imagecopyresampled:

imagecopyresampled($resizedImg, $srcImg, 0, 0, 0, 0, $resizeWidth, $resizeHeight, $srcWidth, $srcHeight)
Blizz
  • 8,082
  • 2
  • 33
  • 53
Manu
  • 922
  • 6
  • 16