Page 1 of 1

tif issue

Posted: 2012-11-01T14:46:27-07:00
by graphicsman
Its my first day using ImageMagick with ubuntu. Im trying to create a bash script that will allow me to return filenames based on size but when I write

Code: Select all

(identify -format "%w %h %f\n" *tif)
I get a TIFFWarnings/824 error. I would also like to know how to add .jpegs and .jpg checks. I can run it correctly by .jpgs and get results, but Im lost. Ive tried about every search variation for such as:

Code: Select all

(identify -format "%w %h %f\n" ".jpeg" || ".jpg")

Code: Select all

(identify -format "%w %h %f\n" "*.jpeg" || "*.jpg")

Code: Select all

(identify -format "%w %h %f\n" ".jpeg" && ".jpg")

Code: Select all

(identify -format "%w %h %f\n" ".jpeg" & ".jpg")

Code: Select all

(identify -format "%w %h %f\n" *jpeg & *jpg)

Code: Select all

(identify -format "%w %h %f\n" *jpeg || *jpg)

Re: tif issue

Posted: 2012-11-01T15:46:19-07:00
by snibgo
The "||" and "&&" aren't syntax recognised by IM.

Re: tif issue

Posted: 2012-11-01T16:44:37-07:00
by glennrp

Code: Select all

 (identify -format "%w %h %f\n" *.j*g)
or

Code: Select all

 (identify -format "%w %h %f\n" *.jpg *.jpeg)

Re: tif issue

Posted: 2012-11-01T18:12:18-07:00
by fmw42
The following works fine for me in IM 6.8.0.4 Q16 Mac OSX Snow Leopard

cd Rose_Test
identify -format "%w %h %f\n" *tif
70 46 rose1.tif
70 46 rose2.tif
70 46 rose3.tif