Skip to content

Instantly share code, notes, and snippets.

@kosinix
Last active January 23, 2018 21:59
Show Gist options
  • Save kosinix/c0866b4fc5554017305b to your computer and use it in GitHub Desktop.
Save kosinix/c0866b4fc5554017305b to your computer and use it in GitHub Desktop.
PHP IMAGETYPE_* constants and their values. See http://php.net/manual/en/image.constants.php#constant.imagetype-gif
IMAGETYPE_UNKNOWN 0
IMAGETYPE_GIF 1
IMAGETYPE_JPEG 2
IMAGETYPE_PNG 3
IMAGETYPE_SWF 4
IMAGETYPE_PSD 5
IMAGETYPE_BMP 6
IMAGETYPE_TIFF_II 7
IMAGETYPE_TIFF_MM 8
IMAGETYPE_JPEG2000 9
IMAGETYPE_JPC 9
IMAGETYPE_JP2 10
IMAGETYPE_JPX 11
IMAGETYPE_JB2 12
IMAGETYPE_SWC 13
IMAGETYPE_IFF 14
IMAGETYPE_WBMP 15
IMAGETYPE_XBM 16
IMAGETYPE_ICO 17
@kosinix
Copy link
Author

kosinix commented Jul 8, 2015

IMAGETYPE_JPEG2000 and IMAGETYPE_JPC have the same values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment