Jump to content

Can You Dynamically Rename An Image Once A PHP GD Script Processes The Image?


phpQuestioner

Recommended Posts

Is there a way to change the name of a GD Image Dynamically? For instance I have a script that uses a form to send a regular sized image (ex. 640X480) to a PHP GD Script and it resizes it and displays it above form. But when the end user right click the image and tries to save it to their desktop; they get the name of the PHP GD Script and not a name for the photo. Can the image be renamed dynamically after the script processes the image; either with a specific name or preferably some random number/string? If so; can so one point me in the right direction of how to go about doing this? - Thanks

Barand - Not quit what I am looking for; I just want the src/name of the image not to be the same as the PHP GD Script's src/name once the PHP GD Script finishes processing the image. That way, if a person would decides to save an image from a web page; the image will not be saved as the same name as the PHP GD Image file's name.

 

Can this be done?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.