Skip to content

Commit 465c19f

Browse files
authored
Merge pull request #11 from L3o-pold/add-raw-and-heic-mimetype
Add RAW and Heic mimetype
2 parents 8fc46f8 + e386fbf commit 465c19f

4 files changed

Lines changed: 65 additions & 10 deletions

File tree

src/Dflydev/ApacheMimeTypes/PhpRepository.php

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ class PhpRepository implements RepositoryInterface
799799
'cgm' => 'image/cgm',
800800
'g3' => 'image/g3fax',
801801
'gif' => 'image/gif',
802+
'heic' => 'image/heic',
802803
'ief' => 'image/ief',
803804
'jpeg' => 'image/jpeg',
804805
'jpg' => 'image/jpeg',
@@ -833,23 +834,39 @@ class PhpRepository implements RepositoryInterface
833834
'xif' => 'image/vnd.xiff',
834835
'webp' => 'image/webp',
835836
'3ds' => 'image/x-3ds',
837+
'dng' => 'image/x-adobe-dng',
838+
'cr2' => 'image/x-canon-cr2',
839+
'crw' => 'image/x-canon-crw',
836840
'ras' => 'image/x-cmu-raster',
837841
'cmx' => 'image/x-cmx',
842+
'erf' => 'image/x-epson-erf',
838843
'fh' => 'image/x-freehand',
839844
'fhc' => 'image/x-freehand',
840845
'fh4' => 'image/x-freehand',
841846
'fh5' => 'image/x-freehand',
842847
'fh7' => 'image/x-freehand',
848+
'raf' => 'image/x-fuji-raf',
843849
'ico' => 'image/x-icon',
850+
'k25' => 'image/x-kodak-k25',
851+
'kdc' => 'image/x-kodak-kdc',
852+
'mrw' => 'image/x-minolta-mrw',
844853
'sid' => 'image/x-mrsid-image',
854+
'nef' => 'image/x-nikon-nef',
855+
'orf' => 'image/x-olympus-orf',
856+
'raw' => 'image/x-panasonic-raw',
845857
'pcx' => 'image/x-pcx',
858+
'pef' => 'image/x-pentax-pef',
846859
'pic' => 'image/x-pict',
847860
'pct' => 'image/x-pict',
848861
'pnm' => 'image/x-portable-anymap',
849862
'pbm' => 'image/x-portable-bitmap',
850863
'pgm' => 'image/x-portable-graymap',
851864
'ppm' => 'image/x-portable-pixmap',
852865
'rgb' => 'image/x-rgb',
866+
'x3f' => 'image/x-sigma-x3f',
867+
'arw' => 'image/x-sony-arw',
868+
'sr2' => 'image/x-sony-sr2',
869+
'srf' => 'image/x-sony-srf',
853870
'tga' => 'image/x-tga',
854871
'xbm' => 'image/x-xbitmap',
855872
'xpm' => 'image/x-xpixmap',
@@ -927,13 +944,6 @@ class PhpRepository implements RepositoryInterface
927944
'h' => 'text/x-c',
928945
'hh' => 'text/x-c',
929946
'dic' => 'text/x-c',
930-
'php' => 'text/x-php',
931-
'phtml' => 'text/x-php',
932-
'php3' => 'text/x-php',
933-
'php4' => 'text/x-php',
934-
'php5' => 'text/x-php',
935-
'php7' => 'text/x-php',
936-
'phps' => 'text/x-php',
937947
'f' => 'text/x-fortran',
938948
'for' => 'text/x-fortran',
939949
'f77' => 'text/x-fortran',
@@ -942,6 +952,13 @@ class PhpRepository implements RepositoryInterface
942952
'opml' => 'text/x-opml',
943953
'p' => 'text/x-pascal',
944954
'pas' => 'text/x-pascal',
955+
'php' => 'text/x-php',
956+
'phtml' => 'text/x-php',
957+
'php3' => 'text/x-php',
958+
'php4' => 'text/x-php',
959+
'php5' => 'text/x-php',
960+
'php7' => 'text/x-php',
961+
'phps' => 'text/x-php',
945962
'nfo' => 'text/x-nfo',
946963
'etx' => 'text/x-setext',
947964
'sfv' => 'text/x-sfv',
@@ -1640,6 +1657,7 @@ class PhpRepository implements RepositoryInterface
16401657
'image/cgm' => array('cgm'),
16411658
'image/g3fax' => array('g3'),
16421659
'image/gif' => array('gif'),
1660+
'image/heic' => array('heic'),
16431661
'image/ief' => array('ief'),
16441662
'image/jpeg' => array('jpeg', 'jpg', 'jpe'),
16451663
'image/ktx' => array('ktx'),
@@ -1666,18 +1684,35 @@ class PhpRepository implements RepositoryInterface
16661684
'image/vnd.xiff' => array('xif'),
16671685
'image/webp' => array('webp'),
16681686
'image/x-3ds' => array('3ds'),
1687+
'image/x-adobe-dng' => array('dng'),
1688+
'image/x-canon-cr2' => array('cr2'),
1689+
'image/x-canon-crw' => array('crw'),
16691690
'image/x-cmu-raster' => array('ras'),
16701691
'image/x-cmx' => array('cmx'),
1692+
'image/x-epson-erf' => array('erf'),
16711693
'image/x-freehand' => array('fh', 'fhc', 'fh4', 'fh5', 'fh7'),
1694+
'image/x-fuji-raf' => array('raf'),
16721695
'image/x-icon' => array('ico'),
1696+
'image/x-kodak-dcr' => array('dcr'),
1697+
'image/x-kodak-k25' => array('k25'),
1698+
'image/x-kodak-kdc' => array('kdc'),
1699+
'image/x-minolta-mrw' => array('mrw'),
16731700
'image/x-mrsid-image' => array('sid'),
1701+
'image/x-nikon-nef' => array('nef'),
1702+
'image/x-olympus-orf' => array('orf'),
1703+
'image/x-panasonic-raw' => array('raw'),
16741704
'image/x-pcx' => array('pcx'),
1705+
'image/x-pentax-pef' => array('pef'),
16751706
'image/x-pict' => array('pic', 'pct'),
16761707
'image/x-portable-anymap' => array('pnm'),
16771708
'image/x-portable-bitmap' => array('pbm'),
16781709
'image/x-portable-graymap' => array('pgm'),
16791710
'image/x-portable-pixmap' => array('ppm'),
16801711
'image/x-rgb' => array('rgb'),
1712+
'image/x-sigma-x3f' => array('x3f'),
1713+
'image/x-sony-arw' => array('arw'),
1714+
'image/x-sony-sr2' => array('sr2'),
1715+
'image/x-sony-srf' => array('srf'),
16811716
'image/x-tga' => array('tga'),
16821717
'image/x-xbitmap' => array('xbm'),
16831718
'image/x-xpixmap' => array('xpm'),

src/Dflydev/ApacheMimeTypes/Resources/mime.types

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,7 @@ image/cgm cgm
13141314
# image/fits
13151315
image/g3fax g3
13161316
image/gif gif
1317+
image/heic heic
13171318
image/ief ief
13181319
# image/jp2
13191320
image/jpeg jpeg jpg jpe
@@ -1356,18 +1357,37 @@ image/vnd.wap.wbmp wbmp
13561357
image/vnd.xiff xif
13571358
image/webp webp
13581359
image/x-3ds 3ds
1360+
image/x-adobe-dng dng
1361+
image/x-adobe-dng dng
1362+
image/x-canon-cr2 cr2
1363+
image/x-canon-crw crw
1364+
13591365
image/x-cmu-raster ras
13601366
image/x-cmx cmx
1367+
image/x-epson-erf erf
13611368
image/x-freehand fh fhc fh4 fh5 fh7
1369+
image/x-fuji-raf raf
13621370
image/x-icon ico
1371+
image/x-kodak-dcr dcr
1372+
image/x-kodak-k25 k25
1373+
image/x-kodak-kdc kdc
1374+
image/x-minolta-mrw mrw
13631375
image/x-mrsid-image sid
1376+
image/x-nikon-nef nef
1377+
image/x-olympus-orf orf
1378+
image/x-panasonic-raw raw
13641379
image/x-pcx pcx
1380+
image/x-pentax-pef pef
13651381
image/x-pict pic pct
13661382
image/x-portable-anymap pnm
13671383
image/x-portable-bitmap pbm
13681384
image/x-portable-graymap pgm
13691385
image/x-portable-pixmap ppm
13701386
image/x-rgb rgb
1387+
image/x-sigma-x3f x3f
1388+
image/x-sony-arw arw
1389+
image/x-sony-sr2 sr2
1390+
image/x-sony-srf srf
13711391
image/x-tga tga
13721392
image/x-xbitmap xbm
13731393
image/x-xpixmap xpm

0 commit comments

Comments
 (0)