Convert function problem

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Amarok
Posts: 7
Joined: 2013-03-01T06:12:26-07:00
Authentication code: 6789

Convert function problem

Post by Amarok »

Hi,

I have a problem with the convert function :

I runned the convert function thanks to a .bat file like that : "convert -negate N.png IN.png" and the same function never stop. In the batch windows i can see the same function appear again and again.

Since, each time i run a convert function, program never stop, run the same function and i have to stop it with Ctrl+C.

http://img15.hostingpics.net/pics/486262impr.png

Can you help me ?

Thank you in advance .

Amarok
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Convert function problem

Post by Bonzo »

The input should come before the -negate:

Code: Select all

convert N.png -negate IN.png
Try enclosing your file name in " " as you have spaces in the filename.

Code: Select all

convert "N.png" -negate IN.png
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert function problem

Post by snibgo »

What is the batch file named? If it is named "convert.bat", it is calling itself.
snibgo's IM pages: im.snibgo.com
Amarok
Posts: 7
Joined: 2013-03-01T06:12:26-07:00
Authentication code: 6789

Re: Convert function problem

Post by Amarok »

Hi,

Yes indeed snibgo the name file was convert.bat i found myself later.

Thanks :)
Post Reply