identify -format '%w' THE_IMAGE.jpg identify -format '%h' THE_IMAGE.jpgThis will just display the width and height. In a bash script:
width=$(identify -format '%w' THE_IMAGE.jpg) height=$(identify -format '%h' THE_IMAGE.jpg)
identify -format '%w' THE_IMAGE.jpg identify -format '%h' THE_IMAGE.jpgThis will just display the width and height. In a bash script:
width=$(identify -format '%w' THE_IMAGE.jpg) height=$(identify -format '%h' THE_IMAGE.jpg)