ImageMagick command and watermark

Author Message

laurent le cadet

Tuesday 15 June 2010 5:49:50 am

Hi,

I'm trying to apply aa image as watermark on an image alias like this :

[ImageMagick]
Filters[]=watermark=-composite -gravity center extension/ezwebin/design/ezwebin/images/watermark.png

[lightbox]
Reference=
Filters[]
Filters[]=geometry/scaleheight=600
Filters[]=watermark=

But the generated image is only image design for the watermark. No composite of watermark.png and images.

Any hint ?

Laurent

Robin Muilwijk

Tuesday 15 June 2010 5:55:36 am

Hi Laurent,

Have you seen the following topic http://share.ez.no/forums/developer/imagemagick-watermark-filter-not-working. They were able to solve the watermark problem there.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

laurent le cadet

Tuesday 15 June 2010 6:18:44 am

Thanks Robin,

I'm turning around this topic for hours now without any correct result.
I tried almost everything -composite -watermark +swap ...
I can only see my watermark image or ...nothing.

:(

Reinhard Hutter

Tuesday 15 June 2010 9:23:48 am

I had the same problem recently, many of my image filters stopped working. By trial and error I found out that I have to put the filename in front of -composite, e.g.

Filters[]=banner_watermark=design/plain_site/images/banner_mask.png -composite 

I still don't know if eZ has changed or the ImageMagick syntax had changed.

laurent le cadet

Tuesday 15 June 2010 11:46:01 pm

Thanks Reinhard,

It's also the solution for me (4.3.0).
I tried to apply more parameters e.g.

Filters[]=banner_watermark=design/plain_site/images/banner_mask.png -composite -gravity center

but in that case, only the "background" image is show.

Anyway, it's a big step forward ;)

Laurent

STEVO +

Wednesday 16 June 2010 4:10:01 am

This is due to this enhancement in 4.3.0:

http://issues.ez.no/IssueView.php?Id=16022&activeItem=1

I've posted a comment but I think it should be opened as a bug.

You can patch it by reverting lib/ezimage/classes/ezimageshellhandler.php to the 4.2.0 version.

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 04:29:44
Script start
Timing: Jan 18 2025 04:29:44
Module start 'layout'
Timing: Jan 18 2025 04:29:44
Module start 'content'
Timing: Jan 18 2025 04:29:45
Module end 'content'
Timing: Jan 18 2025 04:29:45
Script end

Main resources:

Total runtime0.7603 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0129 587.9219152.6250
Module start 'layout' 0.01290.0024 740.546939.4609
Module start 'content' 0.01530.7434 780.0078658.2422
Module end 'content' 0.75880.0014 1,438.250016.1563
Script end 0.7602  1,454.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4069160.0002
Check MTime0.00120.1542160.0001
Mysql Total
Database connection0.00730.955910.0073
Mysqli_queries0.691790.9776710.0097
Looping result0.00070.0878690.0000
Template Total0.725695.420.3628
Template load0.00200.267720.0010
Template processing0.723695.176520.3618
Template load and register function0.00010.009710.0001
states
state_id_array0.00090.118010.0009
state_identifier_array0.00120.161720.0006
Override
Cache load0.00180.2401490.0000
Sytem overhead
Fetch class attribute can translate value0.00050.067140.0001
Fetch class attribute name0.00130.177090.0001
XML
Image XML parsing0.00150.198940.0004
class_abstraction
Instantiating content class attribute0.00000.0027110.0000
General
dbfile0.00110.1424300.0000
String conversion0.00000.000940.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/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: 32
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs