How can I check ImageMagic commands, whether they have been carried out correct ?
How can I check if that image was assembled correctly?
How can I check ImageMagic commands, whether they have been carried out correct?
-
- 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?
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.
First, define "correctly". Then test for that condition being true.Darknet wrote:How can I check if that image was assembled correctly?
snibgo's IM pages: im.snibgo.com
Re: How can I check ImageMagic commands, whether they have been carried out correct?
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
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
-
- 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?
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
Re: How can I check ImageMagic commands, whether they have been carried out correct?
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.
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Betriebssytem: Linux welche Version weiß ich nicht.