• 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: Image file info?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image file info?


  • Subject: Re: Image file info?
  • From: "Roger Howard" <email@hidden>
  • Date: Mon, 17 Sep 2001 16:23:10 -0700

If you use Akua Sweets it is quite easy... the following line will return the image dimensions as a two item list of integers. You can get many other handy properties of the image using "the picture info for"

tImgFile is a file ref or alias to the image, in case it wasn't obvious. It can also be an "image proxy" if you've already loaded the image with Akua for other purposes.

set tImgDims to items 3 thru 4 of (picture bounds of (the picture info for (tImgFile)))
---> (640,480)

Hope this helps!

Roger Howard
Digital Media Specialist
The J. Paul Getty Museum

email@hidden
310.440.6908

>>> email@hidden - 17 Sep 2001 16:00:30 -0400 >>>
Hi All:

Is there a way to grab width and height dimensions of an image file using
AppleScript? Thanks for the help.

Regards

Steve


  • Prev by Date: Re: empty trash with locked files
  • Next by Date: Re: status display
  • Previous by thread: Image file info?
  • Next by thread: simple persons needs simple docs
  • Index(es):
    • Date
    • Thread