Re: ImageMagick Problem
Re: ImageMagick Problem
- Subject: Re: ImageMagick Problem
- From: "Steven D. Majewski" <email@hidden>
- Date: Wed, 26 Sep 2007 17:04:02 -0400
In fact, looking again at your original post:
-- 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'."
I suspect it was a filepath problem here also, and I-M just may have
a confusing error message
that when given a non-existant file, complains that it doesn't know
the format of that non-existant
file rather than telling you it can't find it.
You may need to change "Users/k-fleisher/..." to "/Users/k-fleisher/..."
or else get the posix path of Applescript's (path to Desktop) to
prepend to the path.
-- Steve Majewski
On Sep 26, 2007, at 4:55 PM, Steven D. Majewski wrote:
On Sep 26, 2007, at 4:49 PM, Fleisher, Ken wrote:
Good ideas. First, the file was saved from Photoshop as a TIFF, no
layers,
8-bit, RGB, no compression, with an embedded ICC profile. It's as
basic of a
file as I can imagine. However, I tried the tests you suggested from
Terminal and I get the following:
FleisherK:~ k-fleisher$ file /Desktop/test/242-142.tif
/Desktop/test/242-142.tif: cannot open (/Desktop/test/242-142.tif)
FleisherK:~ k-fleisher$ tiffutil -info /Desktop/test/242-142.tif
Error: Could not open file /Desktop/test/242-142.tif
FleisherK:~ k-fleisher$ sips -g format /Desktop/test/242-142.tif
Warning: /Desktop/test/242-142.tif not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
I'm not sure what to try next. Thanks again for any help...
Ken
Oops. You wrote: 'Desktop/test/...'
I wrote: '/Desktop/test/...'
You probably want 'Desktop/test...' or '~/Desktop/test/...'
so that it's looking for the file in a subfolder of your Desktop
folder.
The leading '/' makes it look for a Desktop folder in the root
directory.
That's why it doesn't see ANY file.
-- Steve.
On 9/26/07 4:34 PM, "Steven D. Majewski" <email@hidden> wrote:
On Sep 26, 2007, at 4:12 PM, Fleisher, Ken wrote:
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!
It seems to be saying that it's not a tiff file.
What do you get if you try:
file /Desktop/test/242-142.tif
and/or:
tiffutil -info /Desktop/test/242-142.tif
or:
sips -g format /Desktop/test/242-142.tif
[ Just to verify that it's not some problem with your build and
configuration
of ImageMagick. I haven't played with I-M lately, but I recall
it was
a bear to get built properly with all of the libraries I
required.
If one or more of those programs also say it's not a TIFF, then I
would
tend to believe it. ]
-- Steve Majewski / UVA Alderman Library
--
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 (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