Hello,

I believe the line:
        .jpg            image           pjpeg           -               y
should be removed.

I found another curiosity in the file.
term% grep compress /sys/lib/mimetype
.Z              -               -               compress        m
.taz            application     x-tar           compress        m
.trz            application     x-tar           compress        m
.z              -               -               compress        m
.Z              -               -               compress        m
term% 
Does this mean that file suffixes are case sensitive in determining the mime 
type?
If so, should files with suffix “.JPG” be renamed to “.jpg” ?

Kenji Arisawa

2014/11/14 21:13、arisawa <[email protected]> のメール:

> Hello,
> 
> It is curious for me that ".jpg" has two entries in /sys/lib/mimetype.
> term% grep jpeg /sys/lib/mimetype
> .jfif         image           jpeg            -               y
> .jfif-tbnl    image           jpeg            -               y
> .jpe          image           jpeg            -               y
> .jpeg         image           jpeg            -               y
> .jpg          image           jpeg            -               y
> .jpg          image           pjpeg           -               y
> term%
> 
> The file is currently consulted by only two applications: mail and httpd.
> I thought that the file provides conventional way to determine mime type from 
> file suffix.
> If so, what is the mime type for "foo.jpg"?
> 
> Kenji arisawa
> 
> 


Reply via email to