ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Bowman" <>
Subject Problems running ImageMagick via Ant <exec> task
Date Thu, 06 Jan 2005 18:27:56 GMT
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