Resizing Grayscale Pictures

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Resizing Grayscale Pictures

Postby emihaumut » Fri Jul 15, 2011 11:22 pm

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 http://cp.emihaumut.com/svn/1293210901__ddpage%202%20v3.png for thumbnails but I keep getting images like http://cp.emihaumut.com/svn/resize.php?image=1293210901__ddpage%202%20v3.png&w=600. (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.

Thanks.
emihaumut
Forum Newbie
 
Posts: 1
Joined: Fri Jul 15, 2011 11:16 pm

Return to PHPGD.com

Who is online

Users browsing this forum: No registered users and 1 guest