[magick-users] Bug with conjure ?

Jean-Philippe Leboeuf jeanphilippe.leboeuf at free.fr
Fri May 2 03:58:37 PDT 2003


Hello,

I am trying to drop shadows with conjure.
Here is my script:

<?xml version="1.0" encoding="UTF-8"?>
<group id='photo' >
   <image id='img' >
     <read filename="%[f].jpg" />
     <border fill="white" width="10" height="10" />
     <write filename="tmp_img.miff" />
   </image>
   <image id='tmp'>
     <read filename="tmp_img.miff" />
     <get width="base-width" height="base-height" />
   </image>
   <image id='shadow' size="%[base-width]x%[base-height]" color="black" >
     <border fill="white" width="20" height="20" />
     <blur radius="0" sigma="4" />
     <shave geometry="15x15" />
     <border fill="black" width="1" height="1" />
     <write filename="tmp_shadow.miff" />
   </image>
   <image>
     <read filename="tmp_shadow.miff" />
     <composite image="img" compose="over" gravity="center" 
geometry="-4-4" />
   </image>
   <write filename="%[f]_photo.jpg" />
</group>

The 'composite' part does not work because the 'gravity' attribute is 
not used.
But when I use the command line :

composite -gravity "center" -compose "over" -geometry "-4-4" tmp.miff 
tmp_shadow.jpg getsoup_.jpg

It works without problem :(

I am using ImageMagick 5.5.6-Q16 on Windows.

Please, help me!!
Thanks.


-- 
Jean-Philippe LEBOEUF

NMI - Nouvelles Méthodes pour l'Interaction
Université Paris-Sud XI, centre d'Orsay / LIMSI
Université de Technologie de Troyes / Tech-CICO



More information about the Magick-users mailing list