Complex ImageMagick's filters for eZ Publisher

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
olagato

Complex ImageMagick's filters for eZ Publisher

Post by olagato »

If someone knows eZ Publisher...
Is it possible to do this ImageMagick's filter in eZ ?

Code: Select all

convert foto.jpg ( logo.png -resize 50% ) -gravity southeast -compose Multiply -composite -mattecolor Tomato -frame 10x10+5+5 output.jpg
I'm trying this at "\settings\siteaccess\esl\image.ini.append.php" without success.
Filter is working on Windows Command Line.
I must use ImageMagick not GD.

I've already posted this at eZ forum:
http://ez.no/developer/forum/setup_desi ... #msg159664
olagato

Re: Complex ImageMagick's filters for eZ Publisher

Post by olagato »

SOLVED !!!

ImageMagick's "swap" command was the solution:

At "extension\ezwebin\design\ezwebin\override\templates\full\event.tpl" I wrote this:

Code: Select all

{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:

Code: Select all

[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[]=compo_resize_100
Post Reply