I am trying to batch resize images to the size of 250 x 250 in PHP All source images are way bigger than 250 x 250 so that is helpful. I want to maintain aspect ratio but make them all 250 x 250. I …
Tag: resize
Resize PNG image in PHP
I’m getting a no image display when resizing PNG however the following code works for JPEG. I’ve put the headers in but for some reason I’m doing something wrong for png images. Answer Last argument in imagepng($image_p, null, 100) should be between 0 and 9.