Table of Contents
Requirements
Installation
Runtime Configuration
Resources and Constants
This chapter contains detailed instructions on the extension
installation and runtime configuration based on the current PHP Manual
version [2][file://pterodactyl.l2p.net/book/php5image/page/
bi01.html#php_manual].
Requirements
Your PHP must be compiled in with the --enable-exif option.
[Note][http://pterodactyl.l2p.net/images/docbook/note.png] Note
Windows users must also have the mbstring extension enabled.
No additional library is required.
Installation
To enable support of Exif Functions configure your PHP with the --
enable-exif option.
[Note][http://pterodactyl.l2p.net/images/docbook/note.png] Note
Windows users must enable both the php_mbstring.dll and php_exif.dll
DLL's in the php.ini file. The php_mbstring.dll DLL must be loaded
before the php_exif.dll DLL so adjust your php.ini accordingly.
Runtime Configuration
The behaviour of Exif Functions is affected by settings in the php.ini
file.
Exif supports automatically conversion for Unicode and JIS character
encodings of user comments when module mbstring is available. This is
done by first decoding the comment using the specified characterset.
The result is then encoded with another characterset which should
match your HTTP output.
Exif configuration options
* exif.encode_unicode
* exif.decode_unicode_motorola
* exif.decode_unicode_intel
* exif.encode_jis
* exif.decode_jis_motorola
* exif.decode_jis_intel
Resources and Constants
The exif extension has no resource types defined.
The only constant defined by this extension on the top level is
EXIF_USE_MBSTRING (integer). The constant indicates whether Multibyte
String Functions from the mbstring extension are used by the exif
extension.
Also 16 built-in constants are defined and used by the
exif_imagetype() function. They represent possible return values.
Imagetype Constants
1. IMAGETYPE_GIF
2. IMAGETYPE_JPEG
3. IMAGETYPE_PNG
4. IMAGETYPE_SWF
5. IMAGETYPE_PSD
6. IMAGETYPE_BMP
7. IMAGETYPE_TIFF_II (intel byte order)
8. IMAGETYPE_TIFF_MM (motorola byte order)
9. IMAGETYPE_JPC
10. IMAGETYPE_JP2
11. IMAGETYPE_JPX
12. IMAGETYPE_JB2
13. IMAGETYPE_SWC
14. IMAGETYPE_IFF
15. IMAGETYPE_WBMP
16. IMAGETYPE_XBM