• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Test image properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test image properties?


  • Subject: Re: Test image properties?
  • From: Aaron Rosenblum <email@hidden>
  • Date: Tue, 12 Oct 2004 19:23:33 -0400

Hi,

Thanks for the suggestion. sips doesn't appear to be able to handle them when they have alpha channels either:

% sips -g all "Car5 copy 2.TIF"
/Users/arosenblum/Desktop/Car5 copy 2.TIF
Error: Error querying file

thanks

Aaron

On Oct 12, 2004, at 4:33 PM, Gnarlodious wrote:

Probably not worth mentioning, but have you tried something like:

do shell script "sips -g all " & POSIX path of (choose file)

-- Gnarlie


Entity Aaron Rosenblum spoke thus:

Hmm I get:

TIFF Error: Cannot handle 7-channel data.
Error: Can't open Car5 copy 3.TIF. Either it isn't a TIFF file, or
there are unrecognized tags; try tiffutil -dump for more info.

however if I save it in photoshop with no alpha channels:

Directory at 0x8
 Subfile Type: (0 = 0x0)
 Image Width: 1030 Image Length: 698
 Resolution: 300, 300
 Resolution Unit: pixels/inch
 Bits/Sample: 8
 Compression Scheme: none
 Photometric Interpretation: 5 (CMYK color)
 Date & Time: "2004:10:12 15:37:49"
 Software: "Adobe Photoshop CS Macintosh"
 Samples/Pixel: 4
 Rows/Strip: 698
 Number of Strips: 1
 Planar Configuration: Not planar

Interesting eh?  Seems like tiffutil chokes on the alpha.  I guess
thats what I am trying to get around for my script, so I can correctly
identify if it is compressed or not..

thanks

Aaron

On Oct 12, 2004, at 2:43 PM, CS Carl Stawicki (4211) wrote:

I'm using tiffutil on layered PSCS tiffs, and it seems to work fine.

After some testing, I settled on this:

set myTiff to quoted form of posix path of alias "Path:to:mytiff.tif"
(do shell script "tiffutil -info " & myTiff) contains "Lempel-Ziv &
Welch"

result: true or false



Carl.



----------
From:  
applescript-users-
bounces+carl.stawicki=email@hidden on behalf of
Aaron Rosenblum
Sent:   Tuesday, October 12, 2004 2:16 PM
 To:     email@hidden
Subject:        Test image properties?

Hey all,

Does anyone know of a way to test a tiff image to see its properties
using AS?  I have a script that compresses TIFF images (LZW) using
photoshop, but I'd like to be able to test the image for this property
first and then skip it if it is already compressed.  I found the
tiffutil command, but it doesn't like the layered tiffs that photoshop
creates.


thanks!

Aaron

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
gnarlodious@earthli
nk.net


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Test image properties? (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: String to sum
  • Next by Date: Re: This is ridiculous
  • Previous by thread: Re: Test image properties?
  • Next by thread: This is ridiculous
  • Index(es):
    • Date
    • Thread