Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Created Images in GD

Status
Not open for further replies.

MSRez

Programmer
Dec 22, 2004
57
EU
I can generate a dynamic image using PHP and GD but I don't want the script to have to do this everytime because it's not too good for the server load. Instead, I want to generate the image once and then save a static copy of it. How exactly can I save the image to a file after I've dynamically created it?
 
what kind of images do yuo create ?
jpg ?
use imagejpeg

png ?
imagepng

etc
in manual look at the XLI. Image Functions

gry online
 
This came down to me being inexperienced with the imagejpeg function and forgetting that the directory the thumbnail is to be saved to must be CHMOD 777!

Turns out the imagejpeg function makes saving the thumbnail easy!

Thanks for your help nego78.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top