Image Mime Type for PHP

NO – Extension -?ImageType – 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

CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.