ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: blue-j on December 14, 2020, 07:51:36 PM

Title: BaseType => 'ZIP'
Post by: blue-j on December 14, 2020, 07:51:36 PM
It seems that whenever I use 'ZIP' as BaseType in a user-defined file type, it doesn't seem to work.  Here's an example (sample file attached):

    zxp => {
        BaseType => 'ZIP',
        MIMEType => 'application/vnd.adobe.air-ucf-package+zip',
        Description => 'Adobe Zip Format Extension Package',
    }

It simply won't report file type description here, it doesn't report the extension as ZXP.   There are other examples, too:

    costylepack => {
        BaseType => 'ZIP',
        Description => 'Capture One Style Package',
    },

I'll also attach a sample of that.

Am I doing something wrong?  Or is the problem in my app's intelligence?  Or might this be a problem with ExifTool?

- J
Title: Re: BaseType => 'ZIP'
Post by: Phil Harvey on December 15, 2020, 06:49:02 AM
I'll look into this when I get a chance.  Give me a day or two.

- Phil
Title: Re: BaseType => 'ZIP'
Post by: blue-j on December 15, 2020, 02:17:16 PM
I've seen the same issue with XML as BaseType:

    cxf => {
        BaseType => 'XML',
        MIMEType => 'text/xml',
        Description => 'Color Exchange Format',
    }

It works great for all other config I have.  - J
Title: Re: BaseType => 'ZIP'
Post by: blue-j on December 15, 2020, 10:16:38 PM
Well, darn, I found a typo in my config, and now both the ZXP and COSTYLEPACK are working fine.  So sorry.

I'm attaching a ZIP-based file format that doesn't work still.  It seems to be part of a family of file types that are zips but hide the .zip extension on the desktop.  I think this may be the source of the issue...?

I do still have trouble with the XML-based files, including the CXF file provided.

- J

Title: Re: BaseType => 'ZIP'
Post by: blue-j on December 15, 2020, 10:20:32 PM
See, even the uploader put z .zip on it!

See attached for how macOS 10.15.7 displays this.   - J
Title: Re: BaseType => 'ZIP'
Post by: blue-j on December 15, 2020, 10:24:03 PM
Another example of XML-base not working for me (attached):

    costyle => {
        BaseType => 'XML',
        MIMEType => 'text/xml',
        Description => 'Capture One Style',
    },
Title: Re: BaseType => 'ZIP'
Post by: Phil Harvey on December 17, 2020, 09:03:57 AM
Right.  The problem is that XML isn't a supported file type, so it can't be used as a BaseType in the config file.

Maybe there is something I can do about this.

- Phil
Title: Re: BaseType => 'ZIP'
Post by: Phil Harvey on December 17, 2020, 09:26:47 AM
OK.  You can work around it like this:

    XML => {
        BaseType => 'XMP',
        MIMEType => 'text/xml',
        Description => 'Extensible Markup Language',
    },
    costyle =>  'XML',


Currently you can't assign a different description for costyle...  I'll look into this.

- Phil
Title: Re: BaseType => 'ZIP'
Post by: blue-j on December 19, 2020, 01:51:49 PM
I have another example where even a description doesnt seem to work:

afphoto => {
        Description => 'Affinity Photo Document',
    }


- J
Title: Re: BaseType => 'ZIP'
Post by: blue-j on December 19, 2020, 03:22:08 PM
Another XML-based unsupported file type, in case it is helpful. - J