Exiftool fails to recognize MIME type of jxr files

Started by kobellem, November 06, 2019, 05:21:59 AM

Previous topic - Next topic

kobellem

Hi,

I noticed when extracting the metadata of a jxr file, the MIME type is set to application/unknown.


# /exif/Image-ExifTool-11.75/exiftool /test/sample.jxr
ExifTool Version Number         : 11.75
File Name                       : sample.jxr
Directory                       : /test
File Size                       : 16 kB
File Modification Date/Time     : 2019:11:05 17:12:32+00:00
File Access Date/Time           : 2019:11:05 17:12:32+00:00
File Inode Change Date/Time     : 2019:11:05 17:12:39+00:00
File Permissions                : rwxr-xr-x
File Type                       : JXR
File Type Extension             : jxr
MIME Type                       : application/unknown
Exif Byte Order                 : Little-endian (Intel, II)
Pixel Format                    : 24-bit RGB
Transformation                  : Horizontal (normal)
Image Width                     : 128
Image Height                    : 128
Width Resolution                : 96
Height Resolution               : 96
Image Offset                    : 134
Image Byte Count                : 16710
Image Size                      : 128x128
Megapixels                      : 0.016


At first I thought it might be the file itself, so I tested some another jxr file with the same result.
When I use the linux file command to extract the mime type, it does so correctly:


# file --mime-type -b sample.jxr
image/jxr


The commands listed above were performed on a Ubuntu 18.04.3 LTS docker container.

Sample jxr file: https://www.aconvert.com/samples/sample.jxr

Kind regards,
kobellem

Phil Harvey

hi Kobellem,

Thanks for this report.  I'll add this MIMEType for ExifTool 11.76

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

kobellem

Hi Phil.

Thanks for the quick response, good to hear it will be added in the next version. :)

Kind regards,
kobellem