Monday 01 December 2008 4:02:31 am
Hi, eZpublish is able to use ImageMagick command. Maybe you could use the -caption operator to add this text. You'll need to override the image.ini and add some filters in the [ImageMagick].Filters array and then create an alias that use this filter. I didn't use kind of filters and don't know If it works, but this would looks like this : image.ini.append.php
# Adding the new image alias
[AliasSettings]
AliasList[]=mynewalias
...
# Alias settings
[mynewalias]
Filters[]
Filters[]=caption=My text
....
# ImageMagick settings
[ImageMagick]
Filters[]=caption=-caption %1
...
in your template
{attribute_view_gui attribute=$node.data_map.image image_class="mynewalias"}
There are severall convert operator as you can see in http://www.imagemagick.org/Usage/annotating/. Don't know If all can be used in eZpublish.
Looking for information about SQLI ?
Looking for a new job in Paris ?
Please contact me at alafon [at] sqli [dot] com
|