Jump to content

Adding text to multiple images


melles

Recommended Posts

Hi Guys

 

Adding text to an image is relatively easy but I need to add text to a number of images on the same page. Is the only way to add the text and save so that I can reload when I need to. The problem arises because there are a number of images (within link tags) which have descriptive text available and a number which don't. I need to add the text "Text available" to those that do. It's driving me mad. I have tried calling a piece of php code as the src parameter of the image tag but this just locks up. Any help or pointers would be gratefully received.

Link to comment
https://forums.phpfreaks.com/topic/279428-adding-text-to-multiple-images/
Share on other sites

Thanks for the reply dalecosp. I'm looking at applying a reversed legend actually on the images. All the help on this (and GD) seems to be geared towards a single image due to the header output for image/png etc. I have a page of images all sourced from actual saved images. I can't seem to get my head around handling more than a single image. I have worked around this by using my php code to create the main image as a background and then using the revered text as another image as a second background. I would, however, prefer a more browser free solution.

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.