Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / February 2006



Tip: Looking for answers? Try searching our database.

Using PerlMagick to get TIFF header information

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Witney - 23 Feb 2006 23:17 GMT
Hi,

I am using PerlMagick to parse a TIFF file as I need to extract some
information from the header section. I can get Tags like Make and Model, but
I need to get some of the others (specifically Host Computer).... The
information can be extracted using ImageMagick's identify -verbose, but I
don't know how to get to all the tags using PerlMagick.

Does anyone know how to get all the header tag information or at least get a
list of the available tags with PerlMagick?

Thanks for any help

Adam

Signature

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Alan Fry - 24 Feb 2006 12:08 GMT
Does GetAttribute() return what you need? There is a list of  
'attributes' for 'set' and 'get' in<www.imagemagic.org/script/perl-
magic.php> which might be helpful.

HTH

Alan Fry

> Hi,
>
[quoted text clipped - 13 lines]
>
> Adam
Adam Witney - 24 Feb 2006 13:09 GMT
Hi Alan,

Thanks for your reply.

Unfortunately you need to know the attribute name for GetAttribute, The
vendor that generates these TIFFs have stuck the information I need in
TIFFTAG_HOSTCOMPUTER for some strange reason, I know its there from the
identify -verbose output, but it doesn't seem to be accessible from
PerlMagick

I was hoping that there was a method that would return all attribute names
and values, say for example by calling GetAttribute() with no arguments...
But I can't see that there is one that does this...

I have actually managed to hack ImageMagick to make TIFFTAG_HOSTCOMPUTER
accessible, but this means I have to recompile it on the target OS's, fine
for my Mac, but not ideal as I have to run this on Windows also, and I have
no idea to compile it there!

Thanks again for your help

Adam

> Does GetAttribute() return what you need? There is a list of
> 'attributes' for 'set' and 'get' in<www.imagemagic.org/script/perl-
[quoted text clipped - 21 lines]
>>
>> Adam

Signature

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.