Image mime types in perl hash format

From miscellus


Perl hash containing image MIME types

Having spent a while researching and creating this Perl hash of image MIME-types, it seemed a shame to waste it, so help yourself!

    my $h_mime_types = {
                         'bmp'  => 'image/bmp',
                         'cmx'  => 'image/x-cmx',
                         'cod'  => 'image/cis-cod',
                         'gif'  => 'image/gif',
                         'ico'  => 'image/x-icon',
                         'ief'  => 'image/ief',
                         'jpe'  => 'image/jpeg',
                         'jpeg' => 'image/jpeg',
                         'jpg'  => 'image/jpeg',
                         'jpe'  => 'image/jpeg',
                         'pbm'  => 'image/x-portable-bitmap',
                         'pgm'  => 'image/x-portable-graymap',
                         'pbm'  => 'image/x-portable-bitmap',
                         'png'  => 'image/png',
                         'pnm'  => 'image/x-portable-anymap',
                         'ppm'  => 'image/x-portable-pixmap',
                         'ras'  => 'image/x-cmu-raster',
                         'rgb'  => 'image/x-rgb',
                         'svg'  => 'image/svg+xml',
                         'tif'  => 'image/tiff',
                         'tiff' => 'image/tiff',
                         'xbm'  => 'image/x-xbitmap',
                         'xpm'  => 'image/x-xpixmap',
                         'xwd'  => 'image/x-xwindowdump',
    };

Do let me know if you would like to see this in another format.