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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.