Image Magic cmd-line convert create extra 1x1 pixel file..

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
noisefix

Image Magic cmd-line convert create extra 1x1 pixel file..

Post by noisefix »

Hello

I have been using Image Magic in a batch script using the following command:

Convert c:\imagescript\working\1_ws.tga c:\imagescript\output\Output.jpg

The result is two files.

Output-0.jpg (which is the correct size)

Output-1.jpg (1x1 pixel "empty" image)

The addition of digit to the naming scheme screws up my batch process and I have no idea why it create erroneous files. Any advice on how to resolve this would be appreciated.

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

Re: Image Magic cmd-line convert create extra 1x1 pixel file..

Post by Bonzo »

I would guess your file has another layer or something similar.

Try just working with the first layer:

Code: Select all

Convert c:\imagescript\working\1_ws.tga[0] c:\imagescript\output\Output.jpg
noisefix

Re: Image Magic cmd-line convert create extra 1x1 pixel file..

Post by noisefix »

Bonzo wrote:I would guess your file has another layer or something similar.

Try just working with the first layer:

Code: Select all

Convert c:\imagescript\working\1_ws.tga[0] c:\imagescript\output\Output.jpg
I owe you a beer mate! Cheers
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Image Magic cmd-line convert create extra 1x1 pixel file..

Post by Bonzo »

Cheers noisefix I will have a "Hobgoblin" :D

Image
noisefix

Re: Image Magic cmd-line convert create extra 1x1 pixel file..

Post by noisefix »

Bonzo wrote:Cheers noisefix I will have a "Hobgoblin" :D

Image
jesus.. what a freaky beer.

http://www.hobgoblinbeer.com/

They have a competition you may be interested in! :P

cheers, ciao
Post Reply