Overlay or screen image alias with ImageMagick

Author Message

Chris Detmer

Tuesday 06 May 2008 8:54:53 am

I'm attempting to create an image alias with a 'grayed out' or screened look - basically a gray overlay. The documentation on using filters with ImageMagick and eZ is sparse at best.

I've tried using the filters for colorspace/gray, transparent and monochrome - none of which provide desirable results.

I also have trouble combining filtering and geometry at the same time. Does anyone have any tips or perhaps better documentation and/or experience of their own on filtering with ImageMagick in eZ?

Also note, I do not have GD enabled, only ImageMagick.

Thanks,

- Chris

Chris Detmer

Tuesday 06 May 2008 4:14:35 pm

I solved the issue, after reading this post:

http://ez.no/developer/forum/developer/imagemagick_watermark_filter_not_working/re_imagemagick_watermark_filter_not_working__3

Basically, adding "+swap" did the trick.

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 20 2025 17:36:08
Script start
Timing: Jan 20 2025 17:36:08
Module start 'layout'
Timing: Jan 20 2025 17:36:08
Module start 'content'
Timing: Jan 20 2025 17:36:09
Module end 'content'
Timing: Jan 20 2025 17:36:09
Script end

Main resources:

Total runtime0.9366 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.0055 588.0469151.2266
Module start 'layout' 0.00550.0028 739.273436.6797
Module start 'content' 0.00830.9274 775.9531480.5938
Module end 'content' 0.93580.0008 1,256.54697.8125
Script end 0.9366  1,264.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3554160.0002
Check MTime0.00130.1421160.0001
Mysql Total
Database connection0.00090.096710.0009
Mysqli_queries0.896795.7371520.0172
Looping result0.00050.0501500.0000
Template Total0.900396.120.4501
Template load0.00200.214520.0010
Template processing0.898395.904720.4491
Template load and register function0.00010.009910.0001
states
state_id_array0.00100.111510.0010
state_identifier_array0.00150.163020.0008
Override
Cache load0.00160.1748150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.065310.0006
Fetch class attribute name0.00140.153130.0005
XML
Image XML parsing0.00040.042110.0004
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00070.0791160.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
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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs