Rick Strom on  wrote...
| 
| 
| I have one old server that I cannot update (for various boring reasons), 
| with:
| 
| # Version: @(#)ImageMagick 5.4.7 07/01/02 Q:16 http://www.imagemagick.org
| 
| I need to get a script on that server to correspond to one on a newer 
| server.  I realized that a lot changed with mogrify and consequently had 
| to update a lot of my scripts, so I'm thinking this is a related problem.
| 
| The command I am using on newer versions of ImageMagick looks like this:
| 
| # mogrify -resize 500x\> file.jpg
| 
| And it of course works fine.  This command, however, is failing on the 
| older version, with error "image dimensions are 0".  I temporarily got 
| around it by changing it to:
| 
| # mogrify -resize 500x500\> file.jpg
| 
| But this is not what I need.  I need to resize according to width, 
| preserving aspect ratio, only when width exceeds 500.  Can anyone help 
| me reconstruct this command for the older version to do what needs to be 
| done?
| 
| I am looking over the older docs and every message board I can find.  
| This is kind of a critical issue unfortunately.
| 
try...

   mogrify -resize 500x999999999\>  file.jpg

That will make the height irrelevent as it is doubtful you have an
image that has such a bad aspect ratio as to fail this.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  Book (n): A non-volitile, randomly accessed, analog memory store, no
    electricity or digital cognizance.     -- David Brin, ``Infinity's Shore''
 -----------------------------------------------------------------------------
     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