MagickScript & Shadow

Sep 4, 2014 at 2:46 PM
Hi, can i add a Shadow with Magick Script like this :
  convert rose: \( +clone  -background navy  -shadow 60x3 \) \
          +swap -composite  +repage shadow_composite.png
I try this but i get a black background...
<?xml version="1.0" encoding="utf-8" ?>
<msl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\MagickScript.xsd">
  <read>
    <clone>
      
    <shadow alpha="60" sigma="3" color="#000" x="-5" y="-5" />

      <interlace value="Plane"/>
      <quality value ="50"/>
      <format value ="Jpg"/>
      <strip/>
      <write/>
    </clone> 
   
  </read>
</msl>
Best regards,
Sep 4, 2014 at 3:00 PM
It's working when I change <format value ="Jpg"/> to <format value ="Tif"/>
Why ?
<?xml version="1.0" encoding="utf-8" ?>
<msl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\MagickScript.xsd">
  <read>
    <clone>    
      <shadow color="#555" x="-15" y="-15" alpha="75" sigma="3"/>

      <format value="Jpg"/>
      <strip/>
      <write/>
    </clone> 
   
  </read>
</msl>
Sep 4, 2014 at 3:19 PM
Need to add this before write :
    <backgroundColor value="#fff"/>
    <alpha option="Flatten"/>
It's normal. No Alpha in JPG...