Skip to content
Advertisement

Resize PNG image in PHP

I’m getting a no image display when resizing PNG however the following code works for JPEG.

JavaScript

I’ve put the headers in but for some reason I’m doing something wrong for png images.

Advertisement

Answer

Last argument in imagepng($image_p, null, 100) should be between 0 and 9.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement