Image Mime Type for PHP

munilive
Written by munilive on (Updated: )

PHP에서 사용되는 Image Type에 대한 매직넘버와 타입명 입니다. 공통으로 사용되는 Mine Type과 매핑하여 테이블로 정리 하였습니다.

NoExtensionImage TypeMime Type
1gifIMAGETYPE_GIFimage/gif
2jpgIMAGETYPE_JPEGimage/jpeg
3pngIMAGETYPE_PNGimage/png
4swfIMAGETYPE_SWFapplication/x-shockwave-flash
5psdIMAGETYPE_PSDimage/psd
6bmpIMAGETYPE_BMPimage/bmp
7tiffIMAGETYPE_TIFF_IIimage/tiff (intel byte order)
8tiffIMAGETYPE_TIFF_MMimage/tiff (motorola byte order)
9jpcIMAGETYPE_JPCapplication/octet-stream
10jp2IMAGETYPE_JP2image/jp2
11jpxIMAGETYPE_JPXapplication/octet-stream
12jb2IMAGETYPE_JB2application/octet-stream
13swcIMAGETYPE_SWCapplication/x-shockwave-flash
14iffIMAGETYPE_IFFimage/iff
15wbmpIMAGETYPE_WBMPimage/vnd.wap.wbmp
16xbmIMAGETYPE_XBMimage/xbm

Comments

comments powered by Disqus