How can I check ImageMagic commands, whether they have been carried out correct?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

How can I check ImageMagic commands, whether they have been carried out correct?

Post by Darknet »

How can I check ImageMagic commands, whether they have been carried out correct ?

How can I check if that image was assembled correctly?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How can I check ImageMagic commands, whether they have been carried out correct?

Post by snibgo »

If the command fails, it returns a non-zero status. Your script language has a facility for testing this. In Windows BAT:

Code: Select all

convert {blah blah}

if ERRORLEVEL 1 echo "Something bad happened.
Darknet wrote:How can I check if that image was assembled correctly?
First, define "correctly". Then test for that condition being true.
snibgo's IM pages: im.snibgo.com
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Re: How can I check ImageMagic commands, whether they have been carried out correct?

Post by Darknet »

How can I check if that image was assembled correctly?
First, define "correctly". Then test for that condition being true.


The error is that the images are loaded correctly and not always as a background a gray area appears
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How can I check ImageMagic commands, whether they have been carried out correct?

Post by snibgo »

If you give the command, input images and output result, advice might be more specific. Please also say what version IM you are using, on what platform.
snibgo's IM pages: im.snibgo.com
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Re: How can I check ImageMagic commands, whether they have been carried out correct?

Post by Darknet »

Version: ImageMagick 6.8.9-9 Q16 i686 2014-11-05 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC

Betriebssytem: Linux welche Version weiß ich nicht.
Post Reply