Rounded corners on images

Author Message

Sébastien Antoniotti

Tuesday 02 June 2009 11:39:01 am

Hi,

I would like to reproduce commands to get rounded and transparent corners :
http://www.imagemagick.org/Usage/thumbnails/#rounded_border

But I don't success with translation of this :

convert thumbnail.gif -matte -bordercolor none -border 2  \
          rounded_corner_mask.png -compose DstIn -composite \
          rounded_corner_overlay.png -compose Over -composite \
          rounded_border.png

into an eZ Publish filter for the image.ini [ImageMagick] section.

Some ideas ?

eZ Publish Freelance
web : http://www.webaxis.fr

Luis Micunco

Friday 12 June 2009 5:29:44 am

Hi,
I got some troubles while trying to overlay an image over the original ones by using a filter.
I posted here:
http://ez.no/developer/forum/developer/imagemagick_dst_over_problem

Basically the "mask" image overlays correctly over the original, but then it automatically crops the result image to the size of the mask.
any ideas? Thanks in advance

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 19:31:15
Script start
Timing: Jan 18 2025 19:31:15
Module start 'layout'
Timing: Jan 18 2025 19:31:15
Module start 'content'
Timing: Jan 18 2025 19:31:16
Module end 'content'
Timing: Jan 18 2025 19:31:16
Script end

Main resources:

Total runtime0.8484 sec
Peak memory usage4,096.0000 KB
Database Queries53

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.2109152.6250
Module start 'layout' 0.00690.0032 742.835939.9063
Module start 'content' 0.01010.8368 782.7422512.6094
Module end 'content' 0.84690.0014 1,295.351610.2969
Script end 0.8484  1,305.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4518160.0002
Check MTime0.00190.2192160.0001
Mysql Total
Database connection0.00050.063210.0005
Mysqli_queries0.803194.6659530.0152
Looping result0.00050.0569510.0000
Template Total0.811795.720.4059
Template load0.00210.243420.0010
Template processing0.809795.433820.4048
Template load and register function0.00020.023010.0002
states
state_id_array0.00090.108210.0009
state_identifier_array0.00120.138220.0006
Override
Cache load0.00160.1881180.0001
Sytem overhead
Fetch class attribute can translate value0.00090.111320.0005
Fetch class attribute name0.00060.070130.0002
XML
Image XML parsing0.00050.063720.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00080.0905160.0000
String conversion0.00000.001040.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
1content/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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs