This is a discussion on Exif in php within the PHP Programming forums, part of the Web Development category; Hi, Can any one tell me use of Exif functions in php?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Can any one tell me use of Exif functions in php?
__________________ Thanks & Regards, R.Kamalakannan. |
|
#2
| |||
| |||
| Hi Kamal, 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.
__________________ With, J. Jeyaseelan Everything Possible |
|
#3
| |||
| |||
| Hi, Thanks. It is very interesting to know more on this exif function. I have one small query here do we need to enable anything in the php.ini?
__________________ Thanks & Regards, R.Kamalakannan. |
|
#4
| |||
| |||
| Hi Kamal, It seems that we have to enable it individually in php.ini 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. This will hellp you
__________________ With, J. Jeyaseelan Everything Possible |
|
#5
| |||
| |||
| exif_imagetype This is used to determine the type of an image and reads the first bytes of an image and checks its signature. And also it can be used to avoid calls to other exif functions with unsupported file types or in conjunction with $_SERVER['HTTP_ACCEPT'] to check whether or not the viewer is able to see a specific image in the browser. Syntax int exif_imagetype ( string filename ) exif_imagetype() example PHP Code:
__________________ With, J. Jeyaseelan Everything Possible |
|
#6
| |||
| |||
| Hi jey, I have one small query here. if exif_imagetype you check it only GIF IMG. Any possible to other image type is checking ? for example PNG and TIFF images. do you understand my question?
__________________ Regards, Senraj.A Last edited by senraj : 03-14-2008 at 02:17 AM. |
|
#7
| |||
| |||
| Hi Sen, As IMAGETYPE_GIF, we have the following constants are defined, and represent possible exif_imagetype() return values IMAGETYPE_JPEG IMAGETYPE_PNG IMAGETYPE_SWF IMAGETYPE_PSD IMAGETYPE_BMP IMAGETYPE_TIFF_II (intel byte order) IMAGETYPE_TIFF_MM (motorola byte order) IMAGETYPE_JPC IMAGETYPE_JP2 IMAGETYPE_JPX IMAGETYPE_JB2 IMAGETYPE_SWC IMAGETYPE_IFF IMAGETYPE_WBMP IMAGETYPE_XBM i think this will help you
__________________ With, J. Jeyaseelan Everything Possible |
|
#8
| |||
| |||
| exif_read_data Reads the EXIF headers from a JPEG or TIFF image file. This way you can read meta data generated by digital cameras. Exif headers tend to be present in JPEG/TIFF images generated by digital cameras, but unfortunately each digital camera maker has a different idea of how to actually tag their images, so you can't always rely on a specific Exif header being present. Height and Width are computed the same way getimagesize() does so their values must not be part of any header returned. Also, html is a height/width text string to be used inside normal HTML. Validates EXIF data tags according to the EXIF specification Syntax array exif_read_data ( string filename ,string sections , bool arrays , bool thumbnail ) filename The name of the image file being read. This cannot be an URL. sections Is a comma separated list of sections that need to be present in file to produce a result array. If none of the requested sections could be found the return value is FALSE. arrays Specifies whether or not each section becomes an array. The sections COMPUTED, THUMBNAIL, and COMMENT always become arrays as they may contain values whose names conflict with other sections. thumbnail When set to TRUE the thumbnail itself is read. Otherwise, only the tagged data is read. exif_read_data() example PHP Code:
__________________ With, J. Jeyaseelan Everything Possible |
|
#9
| |||
| |||
| Hi Buddies Read and Write the Exif data Buddies this link will help us to know read and write in Exif data PEL: PHP Exif Library Regards Falcon ![]() |
|
#10
| |||
| |||
| Hi Buddies Here Some class file and example file to read and write in Exif data It will help us.. Regards Falcon ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading and writing EXIF meta data from jpg/jpeg,tiff images | oxygen | C# Programming | 1 | 02-03-2009 09:11 PM |
| Reading EXIF, IPTC & ICC Profile metadata from an image using MagickNet in C# | letmein | C# Programming | 0 | 03-27-2008 12:42 AM |
| List of EXIF metadata properties item name and its proprety ID values | oxygen | C# Programming | 1 | 12-24-2007 01:30 AM |
| Read and Write IPTC and EXIF metadata fro raw Images | Balasubramanian.S | C# Programming | 4 | 08-03-2007 06:38 AM |
| I have a C source to write iptc and exif metadata for raw images. How to use it in C# | oxygen | C# Programming | 0 | 07-21-2007 01:56 AM |
Our Partners |