PHP Developers Network

Resizing Grayscale Pictures
Page 1 of 1

Author:  emihaumut [ Fri Jul 15, 2011 11:22 pm ]
Post subject:  Resizing Grayscale Pictures

Hey, I've been having a lot of issues trying to resize grayscaled images. Google has only been giving me links on how to convert images to grayscale, but that's not what I need. At all.

Here's an example of what's going on. I'm trying to resize for thumbnails but I keep getting images like . (Please ignore the lameness of the image.)

I've read that php and gd has trouble loading grayscale images when you use imagecreatefrompng, but is there a workaround or fix for that? That little snippet was posted some five years ago. I have trouble believing this is still the case.


Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group