• 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: Akua Sweets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Akua Sweets


  • Subject: Re: Akua Sweets
  • From: "Enrique Terrazas" <email@hidden>
  • Date: Wed, 1 Aug 2007 14:32:01 -0700

Ken,

I'm afraid I can't help here since I don't use it very often. I think you need to parse the text to get the values you are after (although someone better than I am with awk/sed could add a pipe and extract the relevant info). I also don't know if the whole image needs to be loaded or not. If you don't use the "-verbose" option you get very very basic info. Even if it does load the whole image, I would imagine that it's faster than scripting Graphic Converter (which may not be open) to open the image, get the same info (although GC will probably give you information that you don't have to parse as much), and then close the image. Here are the entire options available:

Usage: identify [options ...] file [ [options ...] file ... ]

Where options include:
-antialias remove pixel-aliasing
-authenticate value decrypt image with this password
-channel type apply option to select image channels
-crop geometry cut out a rectangular region of the image
-debug events display copious debugging information
-define format:option
define one or more image format options
-density geometry horizontal and vertical density of the image
-depth value image depth
-extract geometry extract area from image
-format "string" output formatted image characteristics
-fuzz distance colors within this distance are considered equal
-help print program options
-interlace type type of image interlacing scheme
-limit type value pixel cache resource limit
-list type Color, Configure, Delegate, Format, Magic, Module,
Resource, or Type
-log format format of debugging information
-matte store matte channel if the image has one
-monitor monitor progress
-ping efficiently determine image attributes
-quiet suppress all error or warning messages
-regard-warnings pay attention to warning messages
-sampling-factor geometry
horizontal and vertical sampling factor
-set attribute value set an image attribute
-size geometry width and height of image
-strip strip image of all profiles and comments
-units type the units of image resolution
-verbose print detailed information about the image
-version print version information
-virtual-pixel method
virtual pixel access method



Enrique

On Aug 1, 2007, at 12:33 PM, Fleisher, Ken wrote:

Yes. Thank you! This looks promising. A couple of questions about it that I
can't tell from the web site. Does it have to load the whole image to report
this info or does it get it from the header? It appears to output all of
this info as text. Do I need to parse the text to get the values that I'm
after or can it return these values into variables?


Thanks.


On 8/1/07 3:26 PM, "Enrique Terrazas" <email@hidden> wrote:


1.  Install ImageMagick with fink or binary available at <http://
www.imagemagick.org/script/index.php>
2.  do shell script "identify -verbose quoted_path_to_image_file.jpg"

Output (which is a lot!) includes:

   Compression: JPEG
   Quality: 93
   Orientation: Undefined
   JPEG-Colorspace: 2
   JPEG-Sampling-factors: 2x2,1x1,1x1

Enrique


--
Ken Fleisher

Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.

Phone: (202) 712-7471
email@hidden


--

Enrique Terrazas, MD, MS
Director, Laboratory Medicine Residency Program
Director, NCPL Laboratories
Chief, Laboratory Information Systems
HS Associate Clinical Professor
University of California, San Francisco
Clinical Laboratories, Box 0100
415.353.1375(UCSF/China Basin phone)
415.353.1620(UCSF/Parnassus phone)
415.353.4826(fax)
415.443.0913(pager)
email@hidden

CONFIDENTIALITY NOTICE: The information contained in this transmission, including any enclosed files, is confidential and intended solely for the addressee. If you are not the intended recipient, you are hereby notified that any distribution, copying, disclosure and use of, the contents of this transmission is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply email and permanently delete this message, enclosures and all copies.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Akua Sweets (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: Re: Akua Sweets
  • Next by Date: Re: Help with find text command
  • Previous by thread: Re: Akua Sweets
  • Next by thread: Re: Akua Sweets
  • Index(es):
    • Date
    • Thread