Forums / General / dynamic text in images with ezimagemanager
christian stampf
Friday 09 July 2004 6:34:42 am
i would like to write some dynamic text into images using imagemagicks convert or the respecitve ezimagemanager function.the text is coming from some fields of a customized "product" class and should show up inside the image.
for example: the product number and product name.
i checked out ezimagemanager but it seems that i would have to generate a new rule for every single image as the text is dynamic (parameter based).
does anyone have a clue how to realize this?
Ekkehard Dörre
Sunday 11 July 2004 2:28:51 am
Hi,
look at http://ez.no/ez_publish/documentation/development/libraries/ez_template/operators/image_handlingthis example:
{image("church", imagefile('var/cache/texttoimage/church.jpg'), array('eZ publish'|texttoimage, hash(transparency,0.8, halign,right, valign,top)))}
You can take the background image (e.g. your product image) dynamically and take the text out of database like this
{$node.name|wash|texttoimage(arial)}
Greetings ekke
http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing