DOCX mapped as ZIP

Started by pewang, June 06, 2013, 01:15:22 PM

Previous topic - Next topic

pewang

Hey group,
I'm using exiftool as part of a php/mySQL digital assets management system. I've ran into the problem of exiftool mapping DOCX files and other OOXML files as ZIP files, without further info, like it's not able to get inside it. Any suggestions? I'm running the latest version 9.30 on a synology DSM4.2 (linux distro). I've installed perl-archive-zip package to make sure but can't really tell if it's being used properly.
Any help appreciated, thanks
Jeremi

Phil Harvey

Hi Jeremi,

If you can send me a sample I'll take a look (philharvey66 at gmail.com)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

Thanks for the sample.  I get this:

> exiftool ~/Desktop/RS75_Choying\ Dzo\ Unicode\ -\ Letter.docx -filetype -warning -f
File Type                       : DOCX
Warning                         : -


If you don't get a DOCX file type for this file, then you should get a warning about a missing library (probably Archive::Zip).  I'm guessing that you'll see this warning, which means that either you installed the wrong library, or it isn't installed where ExifTool can find it.  Try "perl -we 'use Archive::Zip'" to try to load the library.  This will give you information about the search path if it doesn't work.  Then, if you can get this to work, ExifTool should work too.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

pewang

Thanks,
Have tried your suggestion, i get
Can't locate Archive/Zip.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/PPC_QORIQ /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/PPC_QORIQ /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

How can i install the ZIP archive library?
Jeremi

Phil Harvey

The normal way to install a Perl module is to
  • Download the module from http://search.cpan.org/
  • Expand the module tarball with "tar -xzf MODULE.tar.gz"
  • In the expanded module's directory, type "make install"
- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).