Nomax5 Posted August 23, 2006 Share Posted August 23, 2006 I want people to be able to right click images I make with php and “Save As…”if I create a jpeg within test.php with imagejpeg(“$im); which outputs it to the browser.when I right click the image its called “test.php” how do I make it called “something.jpg” instead?I’m thinking my visitors will save it with the .php extension and get confused.I don’t want to save it as a file if I can help it because there will be many of them.Any ideas? Link to comment https://forums.phpfreaks.com/topic/18415-how-to-change-the-file-name-created-using-the-gd-lib/ Share on other sites More sharing options...
onlyican Posted August 23, 2006 Share Posted August 23, 2006 the image would be a .jpgFor exampletest.php, right click, save astest.php.jpgNow how to remove the .php. is a good question Link to comment https://forums.phpfreaks.com/topic/18415-how-to-change-the-file-name-created-using-the-gd-lib/#findComment-79232 Share on other sites More sharing options...
Nomax5 Posted August 23, 2006 Author Share Posted August 23, 2006 when you do "Save As..." its just called "test" and you can choose type "GIF (*.gif)" or BMP Link to comment https://forums.phpfreaks.com/topic/18415-how-to-change-the-file-name-created-using-the-gd-lib/#findComment-79312 Share on other sites More sharing options...
onlyican Posted August 23, 2006 Share Posted August 23, 2006 well, that depends if u have file extensions on or not Link to comment https://forums.phpfreaks.com/topic/18415-how-to-change-the-file-name-created-using-the-gd-lib/#findComment-79357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.