PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

exif_imagetype> <user_error
Last updated: Sun, 25 Nov 2007

view this page in

Exif Functions

소개

With the exif extension you are able to work with image meta data. For example, you may use exif functions to read meta data of pictures taken from digital cameras by working with information stored in the headers of the JPEG and TIFF images.

요구 조건

Your PHP must be compiled in with --enable-exif. PHP does not require any additional library for the exif module. Windows users must also have the mbstring extension enabled.

설치

To enable exif-support configure PHP with --enable-exif

Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.

실행시 설정

이 함수의 작동은 php.ini 설정에 영향을 받습니다.

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
Name Default Changeable Changelog
exif.encode_unicode "ISO-8859-15" PHP_INI_ALL Available since PHP 4.3.0.
exif.decode_unicode_motorola "UCS-2BE" PHP_INI_ALL Available since PHP 4.3.0.
exif.decode_unicode_intel "UCS-2LE" PHP_INI_ALL Available since PHP 4.3.0.
exif.encode_jis "" PHP_INI_ALL Available since PHP 4.3.0.
exif.decode_jis_motorola "JIS" PHP_INI_ALL Available since PHP 4.3.0.
exif.decode_jis_intel "JIS" PHP_INI_ALL Available since PHP 4.3.0.
PHP_INI_* 상수에 대한 자세한 상세와 정의는 php.ini directives를 참고하십시오.

위 설정 지시어에 대한 간단한 설명입니다.

exif.encode_unicode string

exif.encode_unicode defines the characterset UNICODE user comments are handled. This defaults to ISO-8859-15 which should work for most non Asian countries. The setting can be empty or must be an encoding supported by mbstring. If it is empty the current internal encoding of mbstring is used.

exif.decode_unicode_motorola string

exif.decode_unicode_motorola defines the image internal characterset for Unicode encoded user comments if image is in motorola byte order (big-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is UCS-2BE.

exif.decode_unicode_intel string

exif.decode_unicode_intel defines the image internal characterset for Unicode encoded user comments if image is in intel byte order (little-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is UCS-2LE.

exif.encode_jis string

exif.encode_jis defines the characterset JIS user comments are handled. This defaults to an empty value which forces the functions to use the current internal encoding of mbstring.

exif.decode_jis_motorola string

exif.decode_jis_motorola defines the image internal characterset for JIS encoded user comments if image is in motorola byte order (big-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is JIS.

exif.decode_jis_intel string

exif.decode_jis_intel defines the image internal characterset for JIS encoded user comments if image is in intel byte order (little-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is JIS.

자원형

이 확장은 리소스형을 정의하지 않습니다.

예약 상수

이 확장은 다음의 상수들을 정의합니다. 이 확장을 PHP에 내장했거나, 실행시에 동적으로 읽어들일 경우에만 사용할 수 있습니다.

EXIF_USE_MBSTRING (integer)

The exif_imagetype() lists several related built-in constants.

Table of Contents



exif_imagetype> <user_error
Last updated: Sun, 25 Nov 2007
 
add a note add a note User Contributed Notes
Exif
phedberg at gmail dot com
19-Jun-2007 01:22
Mbstring must be loaded before exif. PHP setup program put them in the wrong order in the ini file and I couldn't use exif at all. Had to switch order in the ini file for it to work.
webmaster at robert-beran dot de
30-Nov-2006 02:07
here the link to my exif data remover function:

http://robert-beran.de/dl.php?id=4

its written in php so you can use it to remove jpg exif data in your php projects.

greetz
Robert
ishida at w3 dot org
21-Sep-2006 04:36
Not to mention Arabic, Hebrew, Chinese, the many Indic scripts, Thai, Greek, etc., etc.
23-Dec-2004 02:55
exif.encode_unicode  string

    exif.encode_unicode defines the characterset UNICODE user comments are handled. This defaults to ISO-8859-15 which should work for most non Asian countries. The setting can be empty or must be an encoding supported by mbstring. If it is empty the current internal encoding of mbstring is used.

How come ISO-8859-15 works for most non-Asian countries? It's only for West European and does NOT work for Russian, Greek, Albanian, Polish, Czech, and so forth. The default should be 'UTF-8'

exif_imagetype> <user_error
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites