BaseType => 'ZIP'

Started by blue-j, December 14, 2020, 07:51:36 PM

Previous topic - Next topic

blue-j

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

Phil Harvey

I'll look into this when I get a chance.  Give me a day or two.

- 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 ($).

blue-j

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

blue-j

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


blue-j

See, even the uploader put z .zip on it!

See attached for how macOS 10.15.7 displays this.   - J

blue-j

Another example of XML-base not working for me (attached):

    costyle => {
        BaseType => 'XML',
        MIMEType => 'text/xml',
        Description => 'Capture One Style',
    },

Phil Harvey

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
...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

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
...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 ($).

blue-j

I have another example where even a description doesnt seem to work:

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


- J

blue-j

Another XML-based unsupported file type, in case it is helpful. - J