Jump to content

PHP and ebay. Creating an image on the fly.


poleposters

Recommended Posts

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.

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?

Archived

This topic is now archived and is closed to further replies.

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