Imagemagick dst-over problem

Author Message

Luis Micunco

Friday 12 June 2009 2:45:06 am

Hi.
Im trying to make a filter in image.ini to overlay a tiny logo over the original image, then resize the resulted image,

I followed this article from Ezpedia
http://ezpedia.org/ez/rounded_corners_on_images

[ImageMagick]
Filters[]=test=-compose dst-over -composite -gravity NorthWest ./share/icons/crystal/32x32/actions/identity.png

[test]
Reference=
Filters[]=test=

The identity.png image overlays correctly over the original image. The problem is that the resulted image automatically crops to the identity.png image size (38x37).

I tried to use resize but with no luck, it resizes the resulted image, i think because identity.png is already overlayed. this is what i get.

http://img20.imageshack.us/i/resultg.jpg/

Thanks everyone.

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

Main resources:

Total runtime0.0202 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1328151.2109
Module start 'layout' 0.00440.0042 739.3438220.6875
Module start 'content' 0.00860.0102 960.0313993.8047
Module end 'content' 0.01880.0014 1,953.835929.9922
Script end 0.0202  1,983.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.0678140.0002
Check MTime0.00094.6004140.0001
Mysql Total
Database connection0.00094.245010.0009
Mysqli_queries0.002211.070030.0007
Looping result0.00000.124010.0000
Template Total0.00115.410.0011
Template load0.00084.026510.0008
Template processing0.00031.367410.0003
Override
Cache load0.00052.541110.0005
General
dbfile0.00021.199780.0000
String conversion0.00000.034240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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