Forums / Setup & design / Rounded corners on images

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

eZ debug

Timing: Jan 18 2025 16:05:45
Script start
Timing: Jan 18 2025 16:05:45
Module start 'content'
Timing: Jan 18 2025 16:05:45
Module end 'content'
Timing: Jan 18 2025 16:05:45
Script end

Main resources:

Total runtime0.0161 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.8672180.8359
Module start 'content' 0.00650.0047 770.703194.3906
Module end 'content' 0.01130.0048 865.093870.7031
Script end 0.0161  935.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002313.9563120.0002
Check MTime0.00116.8829120.0001
Mysql Total
Database connection0.00084.806210.0008
Mysqli_queries0.002616.273840.0007
Looping result0.00000.177220.0000
Template Total0.004528.010.0045
Template load0.00085.055810.0008
Template processing0.003722.873110.0037
Override
Cache load0.00063.592110.0006
General
dbfile0.00042.5287100.0000
String conversion0.00000.031030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs