tif issue

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
graphicsman
Posts: 1
Joined: 2012-11-01T14:38:34-07:00
Authentication code: 67789

tif issue

Post 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)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: tif issue

Post by snibgo »

The "||" and "&&" aren't syntax recognised by IM.
snibgo's IM pages: im.snibgo.com
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: tif issue

Post 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)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tif issue

Post 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
Post Reply