Out of interest you are rotating the image no mater what oriantation it is ?
if [ $height -lt $width ]
then
convert originaux/$x -rotate "2" - | convert - -shave 98x119 rotation/pa_$x
else
convert originaux/$x -rotate "2" - | convert - -shave 119x98 rotation/po_$x
yes; I finally removed ...
Search found 3 matches
- 2011-01-11T01:13:47-07:00
- Forum: Users
- Topic: get heigth/width
- Replies: 5
- Views: 9478
- 2011-01-06T06:18:28-07:00
- Forum: Users
- Topic: get heigth/width
- Replies: 5
- Views: 9478
Re: get heigth/width
Hi all,
actually it seems that my IM does not know whether the picture was taken in a landscape or portrait mode; it handles the portrait pictures in a landscape orientation.
Finally, this is not so disturbing to me... though it is strange and I was not able to correct it (I updated from IM 6.6.5 ...
actually it seems that my IM does not know whether the picture was taken in a landscape or portrait mode; it handles the portrait pictures in a landscape orientation.
Finally, this is not so disturbing to me... though it is strange and I was not able to correct it (I updated from IM 6.6.5 ...
- 2011-01-05T10:50:53-07:00
- Forum: Users
- Topic: get heigth/width
- Replies: 5
- Views: 9478
get heigth/width
Hi all,
I am new to Image Magick and am trying to retrieve the width and height of an image so that I can name it in a different way whether it is a landscape or portrait image.
Here is my code:
#!/bin/sh
for x in `ls originaux`
do
width=`convert originaux/$x -format "%[fx:w]" info:`
height ...
I am new to Image Magick and am trying to retrieve the width and height of an image so that I can name it in a different way whether it is a landscape or portrait image.
Here is my code:
#!/bin/sh
for x in `ls originaux`
do
width=`convert originaux/$x -format "%[fx:w]" info:`
height ...