"Troels Holm" on  wrote...
| Hi,
| 
| I have a regular batch running, converting a wide variety of images on a
| W2003 server. For most images I use this command line:
| 
| convert.exe -strip -resample 150x150 %infile%[0] -resize 400x %outfile%
| 
| Now this reports a failure if the source image dpi<=150dpi. The outfile
| is created and is valid. But IM reports:
| 
| convert.exe: ImageResolutionNotDefined 
| convert.exe: Negative or zero image size
| 
You can start by reading in the image before stripping and resampling
it!

  convert.exe %infile%[0] -strip -resample 150x150 -resize 400x %outfile%

As for the warning ImageResolutionNotDefined.  That sounds like the
image that does not contain any resolution or in IM parlance "-density"
setting.

This is strange however as in that case IM usally defaults to 72 points
per inch as the images resolution.

| I assume that these lines are actually warnings - not errors since the
| oufile gets created. Now Im talking a lot of images here so I don't want
| to inspect all warnings. So what I really would like is to quiet
| warnings but not errors. Can this be done?
| 
To quiten IM, make sure all input images does have a 'densuty' image
attribute associated with it.  That in tern depends on just where your
images are being sourced.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  `` It's a damn poor mind that can only think of one way to spell a word. ''
                                                        -- Andrew Jackson
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to