melles Posted June 21, 2013 Share Posted June 21, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/279428-adding-text-to-multiple-images/ Share on other sites More sharing options...
dalecosp Posted June 21, 2013 Share Posted June 21, 2013 Are you looking for text *along with* an image, that is, printed text near the image, or printed text *on* the image, as in a watermark?For watermarking, you need to get into the gd_ functions. Quote Link to comment https://forums.phpfreaks.com/topic/279428-adding-text-to-multiple-images/#findComment-1437306 Share on other sites More sharing options...
melles Posted June 26, 2013 Author Share Posted June 26, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/279428-adding-text-to-multiple-images/#findComment-1437977 Share on other sites More sharing options...
litebearer Posted June 26, 2013 Share Posted June 26, 2013 will the images ever be displayed without the text? will the text for a given image change? Quote Link to comment https://forums.phpfreaks.com/topic/279428-adding-text-to-multiple-images/#findComment-1437994 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.