Saving thumbnail image to file

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

Moderators: onion2k, General Moderators

Post Reply
jip
Forum Newbie
Posts: 3
Joined: Thu May 03, 2007 3:58 pm

Saving thumbnail image to file

Post by jip »

I am using the "Thumbnail Generator Class" code (http://www.phpgd.com/scripts.php?script=1) to create a thumbnail image. It works as long as you want to send the thumbnail image to the browser, but if you want to instead save the new thumbnail as a file...

I have commented out:

header("Content-type: image/jpeg;");

since I do not want to send the image to the browser but I can't seem to get it figured out on saving image to a file. Any suggestions will be greatly appreciated.
[/url]
Post Reply