phpQuestioner Posted October 12, 2007 Share Posted October 12, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/72996-can-you-dynamically-rename-an-image-once-a-php-gd-script-processes-the-image/ Share on other sites More sharing options...
Barand Posted October 12, 2007 Share Posted October 12, 2007 You could get the GD script to save the image to file. Quote Link to comment https://forums.phpfreaks.com/topic/72996-can-you-dynamically-rename-an-image-once-a-php-gd-script-processes-the-image/#findComment-368103 Share on other sites More sharing options...
phpQuestioner Posted October 12, 2007 Author Share Posted October 12, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/72996-can-you-dynamically-rename-an-image-once-a-php-gd-script-processes-the-image/#findComment-368137 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.