ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Bowman" <>
Subject RE: Problems running ImageMagick via Ant <exec> task
Date Thu, 06 Jan 2005 19:09:18 GMT
Never mind, another ImageMagick user suggested that Ant was finding another
convert.exe, so I used the full pathname and it works now.


-----Original Message-----
From: Gordon Bowman [] 
Sent: Thursday, January 06, 2005 1:28 PM
To: ''
Subject: Problems running ImageMagick via Ant <exec> task


The ImageMagick command line "convert -sample 160x160 input.tif output.tif"
works perfectly for me. Now I am trying to run the same command via the Ant
<exec> task, but I cannot get it to work. I have tried the following:


    <exec executable="convert">
        <arg value="-sample 160x160 input.tif output.tif">

    <exec executable="convert">
        <arg line="-sample 160x160 input.tif output.tif">

    <exec executable="convert">
        <arg value="-sample">
        <arg value="160x160">
        <arg value="input.tif">
        <arg value="output.tif">

but each of them returns the error "Invalid Parameter - 160x160" and does
not run the "convert" command.


Does anyone know what I am doing wrong? I'm an Ant newbie, so maybe I'm just
doing something dumb here.




Gordon Bowman

Data-Driven Graphics Consultant


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message