Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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