Skip to content

Commit

Permalink
chore: update image mime types
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Nov 1, 2021
1 parent 3929996 commit 5fae00e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/utils/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,23 +330,49 @@ const censoredEngines = [

// https://github.com/jshttp/mime-db
const imageMimeTypes = {
'image/aces': 'exr',
'image/apng': 'apng',
'image/avif': 'avif',
'image/bmp': 'bmp',
'image/cgm': 'cgm',
'image/dicom-rle': 'drle',
'image/emf': 'emf',
'image/fits': 'fits',
'image/g3fax': 'g3',
'image/gif': 'gif',
'image/heic': 'heic',
'image/heic-sequence': 'heics',
'image/heif': 'heif',
'image/heif-sequence': 'heifs',
'image/hej2k': 'hej2',
'image/hsj2': 'hsj2',
'image/ief': 'ief',
'image/jls': 'jls',
'image/jp2': 'jp2',
'image/jpeg': 'jpg',
'image/jph': 'jph',
'image/jphc': 'jhc',
'image/jpm': 'jpm',
'image/jpx': 'jpx',
'image/jxr': 'jxr',
'image/jxra': 'jxra',
'image/jxrs': 'jxrs',
'image/jxs': 'jxs',
'image/jxsc': 'jxsc',
'image/jxsi': 'jxsi',
'image/jxss': 'jxss',
'image/ktx': 'ktx',
'image/ktx2': 'ktx2',
'image/png': 'png',
'image/prs.btif': 'btif',
'image/prs.pti': 'pti',
'image/sgi': 'sgi',
'image/svg+xml': 'svg',
'image/t38': 't38',
'image/tiff': 'tiff',
'image/tiff-fx': 'tfx',
'image/vnd.adobe.photoshop': 'psd',
'image/vnd.airzip.accelerator.azv': 'azv',
'image/vnd.dece.graphic': 'uvi',
'image/vnd.djvu': 'djvu',
'image/vnd.dvb.subtitle': 'sub',
Expand All @@ -358,12 +384,18 @@ const imageMimeTypes = {
'image/vnd.fujixerox.edmics-mmr': 'mmr',
'image/vnd.fujixerox.edmics-rlc': 'rlc',
'image/vnd.microsoft.icon': 'ico',
'image/vnd.ms-dds': 'dds',
'image/vnd.ms-modi': 'mdi',
'image/vnd.ms-photo': 'wdp',
'image/vnd.net-fpx': 'npx',
'image/vnd.pco.b16': 'b16',
'image/vnd.tencent.tap': 'tap',
'image/vnd.valve.source.texture': 'vtf',
'image/vnd.wap.wbmp': 'wbmp',
'image/vnd.xiff': 'xif',
'image/vnd.zbrush.pcx': 'pcx',
'image/webp': 'webp',
'image/wmf': 'wmf',
'image/x-3ds': '3ds',
'image/x-cmu-raster': 'ras',
'image/x-cmx': 'cmx',
Expand Down

0 comments on commit 5fae00e

Please sign in to comment.