• 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 15:40:42 -0400

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:

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
 _______________________________________________
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

  • Follow-Ups:
    • Re: Test image properties?
      • From: Gnarlodious <email@hidden>
References: 
 >RE: Test image properties? (From: "CS Carl Stawicki (4211)" <email@hidden>)

  • Prev by Date: RE: Test image properties?
  • Next by Date: Re: Get Item Number of List Item Choice?
  • Previous by thread: RE: Test image properties?
  • Next by thread: Re: Test image properties?
  • Index(es):
    • Date
    • Thread