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

Re: ImageMagick Problem


  • Subject: Re: ImageMagick Problem
  • From: "Steven D. Majewski" <email@hidden>
  • Date: Wed, 26 Sep 2007 16:55:57 -0400


In addition to my previous comment, I would also note that: I believe that
ImageMagick's identify command reads in the entire image file, while
'tiffutil -info', sips, mdls, and maybe some other alternatives may only
read in the header.


This may not be an issue unless you're running a script on many image
files, but we had a script that had to run overnnight ( 12 hrs or more )
which, when changed to use 'tiffutil' only took an hour or two.

[ I believe ImageMagick reads every pixel and counts up the number of different values.
It reports that value rather than some maximum bit depth of the particular image
file format, because it handles some transforms that will alter this value
in a pipeline before deciding on an output format. If you want to write a
bitonal CCITT fax format TIFF, then it has to determine that there are only
two values in the pixel data before it will try to encode it as bitonal. ]




-- Steve Majewski / UVA Alderman Library


On Sep 26, 2007, at 4:12 PM, Fleisher, Ken wrote:

Hello. I’m trying to use ImageMagick from AppleScript for the first time and I’m not terribly UNIX savvy. I’m hoping someone can tell me what is wrong with this script and what the error means.

-- Set up properties likely to be used in multiple commands
property pathToImageMagickLibraries : "export DYLD_LIBRARY_PATH=/ usr/ImageMagick-6.3.5/lib;"
property pathToImageMagickCommands : "/usr/ImageMagick-6.3.5/bin/"


-- Build the shell command
set cmd to pathToImageMagickLibraries & pathToImageMagickCommands
set cmd to cmd & "identify -verbose "
set cmd to cmd & "Users/k-fleisher/Desktop/test/*.tif"
--display dialog cmd
-- Execute the command
do shell script cmd

-- Result
tell current application
do shell script "export DYLD_LIBRARY_PATH=/usr/ImageMagick-6.3.5/ lib;/usr/ImageMagick-6.3.5/bin/identify -verbose Users/k-fleisher/ Desktop/test/*.tif"
"identify: no decode delegate for this image format `Users/k- fleisher/Desktop/test/242-142.tif'."



When I run the script from terminal, I get the following:

FleisherK:~ k-fleisher$ identify Desktop/test/*.tif
identify: Not a TIFF file, bad version number 10752 (0x2a00). `Desktop/test/242-142.tif'.


Any help will be very much appreciated. Thanks!

--
Ken Fleisher

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

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


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: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >ImageMagick Problem (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: Re: ImageMagick Problem
  • Next by Date: Re: ImageMagick Problem
  • Previous by thread: Re: ImageMagick Problem
  • Next by thread: Deleting address book fields
  • Index(es):
    • Date
    • Thread