Image Mime Type for PHP
Written by munilive on (Updated: )PHP에서 사용되는 Image Type에 대한 매직넘버와 타입명 입니다. 공통으로 사용되는 Mine Type과 매핑하여 테이블로 정리 하였습니다.
No | Extension | Image Type | Mime Type |
---|---|---|---|
1 | gif | IMAGETYPE_GIF | image/gif |
2 | jpg | IMAGETYPE_JPEG | image/jpeg |
3 | png | IMAGETYPE_PNG | image/png |
4 | swf | IMAGETYPE_SWF | application/x-shockwave-flash |
5 | psd | IMAGETYPE_PSD | image/psd |
6 | bmp | IMAGETYPE_BMP | image/bmp |
7 | tiff | IMAGETYPE_TIFF_II | image/tiff (intel byte order) |
8 | tiff | IMAGETYPE_TIFF_MM | image/tiff (Motorola byte order) |
9 | jpc | IMAGETYPE_JPC | application/octet-stream |
10 | jp2 | IMAGETYPE_JP2 | image/jp2 |
11 | jpx | IMAGETYPE_JPX | application/octet-stream |
12 | jb2 | IMAGETYPE_JB2 | application/octet-stream |
13 | swc | IMAGETYPE_SWC | application/x-shockwave-flash |
14 | iff | IMAGETYPE_IFF | image/iff |
15 | wbmp | IMAGETYPE_WBMP | image/vnd.wap.wbmp |
16 | xbm | IMAGETYPE_XBM | image/xbm |