ImageMagick's complex filters in eZ ???

Author Message

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.

olagato olagato

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:40:15
Script start
Timing: Jan 18 2025 18:40:15
Module start 'layout'
Timing: Jan 18 2025 18:40:15
Module start 'content'
Timing: Jan 18 2025 18:40:16
Module end 'content'
Timing: Jan 18 2025 18:40:16
Script end

Main resources:

Total runtime0.8735 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0313152.6406
Module start 'layout' 0.00610.0025 740.671939.4609
Module start 'content' 0.00860.8632 780.1328464.7422
Module end 'content' 0.87180.0016 1,244.87508.1563
Script end 0.8734  1,253.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3810160.0002
Check MTime0.00160.1777160.0001
Mysql Total
Database connection0.00090.100510.0009
Mysqli_queries0.823894.3180520.0158
Looping result0.00040.0506500.0000
Template Total0.839496.120.4197
Template load0.00280.320220.0014
Template processing0.836695.776920.4183
Template load and register function0.00020.018110.0002
states
state_id_array0.00110.128210.0011
state_identifier_array0.00110.122620.0005
Override
Cache load0.00240.2736210.0001
Sytem overhead
Fetch class attribute can translate value0.00040.047310.0004
Fetch class attribute name0.00130.145130.0004
XML
Image XML parsing0.00060.066410.0006
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00130.1456160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs