Forums / Setup & design / ImageMagick's complex filters in eZ ???
olagato olagato
Monday 25 February 2008 10:45:18 am
Is it possible to do this ImageMagick's filter in eZ ?
convert foto.jpg \ \( logo.png -resize 50% +clone +swap \ -gravity SouthEast -compose Multiply -composite \ -write output1.jpg +delete \) \ -mattecolor Tomato -frame 10x10+5+5 output2.jpg
I'm trying this at "\settings\siteaccess\esl\image.ini.append.php" without success. Filter is working on Windows Command Line and was taken from: http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=10549 I must use ImageMagick not GD.
Tuesday 26 February 2008 9:06:10 am
SOLVED !!!
ImageMagick's "swap" command was the solution:
At "extension\ezwebin\design\ezwebin\override\templates\full\event.tpl" I wrote this:
{attribute_view_gui attribute=$node.data_map.image image_class=medium lightbox_class=large}
"image_class=medium" is the style for the thumbnail image"lightbox_class=large" is the style for for the big image with lightbox (clicked image)
At "settings\siteaccess\esl\image.ini.append.php" I wrote this:
[ImageMagick] Filters[]=pictoric_watermark=+swap -charcoal 1 -compose Multiply -gravity northeast -resize 60% -composite design/ezwebin_site/images/logo.png Filters[]=watermark_resize_60=+swap -compose Multiply -gravity northeast -resize 60% -composite design/ezwebin_site/images/logo.png Filters[]=watermark_resize_100=+swap -compose Multiply -gravity northeast -composite design/ezwebin_site/images/logo.png [medium] Reference= Filters[] Filters[]=watermark_resize_60 [large] Reference= Filters[] Filters[]=watermark_resize_100