Page 1 of 1

Path in batchfiles to pictures

Posted: 2010-01-12T12:30:07-07:00
by Albireo
Hello!
I have write two batchfiles with ImageMagick commands.
This work for me!

Code: Select all

convert thumbnail.gif -matte -virtual-pixel transparent -channel A -blur 0x8 -level 0,50% +channel soft_edge.png
But - When I add a path to the filename

Code: Select all

convert "c:\temp\pic\thumbnail.gif" -matte -virtual-pixel transparent -channel A -blur 0x8 -level 0,50% +channel "c:\temp\pic\soft_edge.png"
I get the following error message:
convert: option requires an argument '-level' @ convert.c/ConvertImageCommand/1708.

Can I choose the library for the infile and outfile in ImageMagick?

//Jan

Re: Path in batchfiles to pictures

Posted: 2010-01-12T12:51:04-07:00
by fmw42
try using the full path from root

or

try

-level "0,50%"

see http://www.imagemagick.org/Usage/windows/ for windows specific issues regarding escape characters and special characters

Re: Path in batchfiles to pictures

Posted: 2010-01-12T13:18:53-07:00
by Albireo
Thank You!
but my problem still exist.
fmw42 wrote:try using the full path from root
I think it is the whole path in Windows.
fmw42 wrote:Try -level "0,50%"
I tested this, but I think the problem still exists in the path because it is the only thing that is differ in the examples.
Find nothing about "the path" to the images.

//Jan

Re: Path in batchfiles to pictures

Posted: 2010-01-12T16:54:39-07:00
by el_supremo
In a batch file you have to double the percent signs or they will be stripped
-level 0,50%%

I don't know what's wrong with the path. I've tried it in a batch file and works fine.

Pete