ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: ed.zanon on May 08, 2018, 06:35:50 AM

Title: Support iWorks suite mimetype with magic number
Post by: ed.zanon on May 08, 2018, 06:35:50 AM
Hallo,
I've an file without extension(.pages, . numbers) of iWork suite(apple), the mimetype is  application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers etc.
The mimetype detected from exiftool is "application/zip". The same problem is resolved with perl package for office document.
Can be resolved for iWork suite?

OS: docker image python:2.7.14-alpine3.7(64 bit) and win10 64bit
apk installed : perl-archive-zip
exiftool version: 10.87-r0 in linux and 10.92 in windows



Thanks!
Title: Re: Support iWorks suite mimetype with magic number
Post by: Phil Harvey on May 08, 2018, 08:20:48 AM
OK Ed, I think I can do this.  Look for better iWork file recognition in Exiftool 10.96.

Thanks for this suggestion.

- Phil
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on May 08, 2018, 09:49:20 AM
Thank for your answer and fast.

Edoardo Zanon
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on June 04, 2018, 03:09:25 AM
Thanks for your release, but without extension it fail again. There is a way for fix it?

Edoardo Zanon
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on June 04, 2018, 03:34:01 AM
Quote from: ed.zanon on May 08, 2018, 09:49:20 AM
Thank for your answer and fast.

Edoardo Zanon

I've seen that "Zip File Name" metadata is the original filename with extension, but i can't say if this is real in all application that write iworks files.
Pages'09 mime is different form actual mime(application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers).
Title: Re: Support iWorks suite mimetype with magic number
Post by: Phil Harvey on June 04, 2018, 07:07:06 AM
Quote from: ed.zanon on June 04, 2018, 03:09:25 AM
Thanks for your release, but without extension it fail again. There is a way for fix it?

I get this:

% cp t/images/iWork.numbers tmp/xxx
% exiftool tmp/xxx -exiftoolversion -filetype -mimetype
ExifTool Version Number         : 10.99
File Type                       : NUMBERS
MIME Type                       : application/x-iwork-numbers-sffnumbers


- Phil
Title: Re: Support iWorks suite mimetype with magic number
Post by: StarGeek on June 05, 2018, 12:18:23 PM
Do you have a sample file you can provide that fails identification when it doesn't have an extension?
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on June 11, 2018, 10:59:33 AM
I'm sorry for my delay. I've it.

And thanks for your help.
Title: Re: Support iWorks suite mimetype with magic number
Post by: Phil Harvey on June 11, 2018, 11:16:07 AM
Thanks.  This sample is very different than the samples I have.

What version of Pages wrote this file?

Do you have samples of Numbers and Keynote files that you could share from the same version of iWorks?

- Phil
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on June 13, 2018, 02:41:38 AM
Goodmorning, all files wrote with iworks online(icloud free service) have the same problem.

- Edoardo
Title: Re: Support iWorks suite mimetype with magic number
Post by: Phil Harvey on June 13, 2018, 07:29:47 AM
That might help if I had the time/inclination to create an iCloud account...
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on June 18, 2018, 06:18:41 AM
I'm sorry, in Attachments there are all type of output in icloud web.

-Edoardo
Title: Re: Support iWorks suite mimetype with magic number
Post by: Phil Harvey on June 18, 2018, 07:16:22 AM
Hi Edoardo,

Thanks for the samples.

Exiftool 11.02 should identify these files properly.

- Phil
Title: Re: Support iWorks suite mimetype with magic number
Post by: ed.zanon on June 18, 2018, 08:02:37 AM
Thanks for your help, it works.

- Edoardo