20 Jan
2002
20 Jan
'02
22:54
Johannes Liedtke
identify -format "%w %h" img_0002.jpg
There are many ways to play around with this.
but "identify" seems to be returning strings, so I'm again unable to compare height and width of the images... :(
There are many ways how to read several strings in bash. See the following two examples: #!/bin/bash identify -format "%w %h" img_0002.jpg \ | { read width height echo "width = $width, height = $height" } #!/bin/bash set $(identify -format "%w %h" img_0002.jpg) echo "width = $1, height = $2" -- Alexandr.Malusek@imv.liu.se