kelketek Posted June 16, 2008 Share Posted June 16, 2008 Hi, I'm looking to see if something I want to do is feasible before starting to learn PHP. I'm trying to make a script that will generate an image based upon the URL, but will output a JPEG directly, not a site with a JPEG in it. The reason being is that I want to be able to reference the images like this: <img src="http://exampledomain.com/imagegen.php?argumentsspecifiedhere.jpg"> Is this possible? And while I'm here, anyone know of a good tutorial available in a downloadable format so I can carry it to an isolated test machine? Link to comment https://forums.phpfreaks.com/topic/110365-directly-accessing-a-processed-jpeg/ Share on other sites More sharing options...
.josh Posted June 16, 2008 Share Posted June 16, 2008 yes you can use php to generate an actual blah.jpg http://us2.php.net/gd Link to comment https://forums.phpfreaks.com/topic/110365-directly-accessing-a-processed-jpeg/#findComment-566252 Share on other sites More sharing options...
kelketek Posted June 16, 2008 Author Share Posted June 16, 2008 Awesome. Thanks! Link to comment https://forums.phpfreaks.com/topic/110365-directly-accessing-a-processed-jpeg/#findComment-566653 Share on other sites More sharing options...
Jabop Posted June 16, 2008 Share Posted June 16, 2008 There are tutorials out there that are database driven, and will output a php file like http://yoursite.com/image.php?img=thisimage with a jpeg (or what extension you may need). I'll look for one in a sec Link to comment https://forums.phpfreaks.com/topic/110365-directly-accessing-a-processed-jpeg/#findComment-566657 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.