poleposters Posted February 15, 2009 Share Posted February 15, 2009 Hi, I'm creating a listing for ebay. I want to be able to display a colour chart of the items I sell. I would also like to be able to display which of these items are currently in stock. This is easy enough with PHP, but Im not allowed to use it on my ebay listing. I've been thinking of a few ways around this. Is it possible to create an image dynamically? ie run a script that creates the jpeg colour chart according to the details in my database. That way I could just link to this dynamically created image. Any help with this or any other ideas would be great. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/145249-php-and-ebay-creating-an-image-on-the-fly/ Share on other sites More sharing options...
.josh Posted February 15, 2009 Share Posted February 15, 2009 http://www.phpfreaks.com/tutorial/php-add-text-to-image Quote Link to comment https://forums.phpfreaks.com/topic/145249-php-and-ebay-creating-an-image-on-the-fly/#findComment-762475 Share on other sites More sharing options...
poleposters Posted February 15, 2009 Author Share Posted February 15, 2009 Thanks! Thats just what I've been looking for. Although Im having some problems executing it. I copied and pasted the code so I could learn how it works and immediately I received the following errors. Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in C:\xampp\htdocs\createimage.php on line 23 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\xampp\htdocs\createimage.php on line 32 Warning: imagecolorallocate(): supplied argument is not a valid Image resource in C:\xampp\htdocs\createimage.php on line 35 Warning: imagecolorallocate(): supplied argument is not a valid Image resource in C:\xampp\htdocs\createimage.php on line 37 Warning: imagefilledrectangle(): supplied argument is not a valid Image resource in C:\xampp\htdocs\createimage.php on line 40 Warning: imagettftext() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\createimage.php on line 47 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\createimage.php:23) in C:\xampp\htdocs\createimage.php on line 50 Warning: imagepng(): supplied argument is not a valid Image resource in C:\xampp\htdocs\createimage.php on line 52 Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\xampp\htdocs\createimage.php on line 55 I have GD enabled. Is there anything else I should be doing? Quote Link to comment https://forums.phpfreaks.com/topic/145249-php-and-ebay-creating-an-image-on-the-fly/#findComment-762482 Share on other sites More sharing options...
.josh Posted February 15, 2009 Share Posted February 15, 2009 did you put the right path/to/font in the script? The tutorial assumes it is in the same directory as the script. Quote Link to comment https://forums.phpfreaks.com/topic/145249-php-and-ebay-creating-an-image-on-the-fly/#findComment-762549 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.