
eZ Publish and EXIF support
EXIF stands for Exchangeable Image File Format, and is a standard for storing interchange information in image files, especially those using JPEG compression. Most digital cameras now use the EXIF format. eZ Publish can analyse uploaded images and store information about image files in database (ezimage datatype). EXIF the PHP extension needs to be available in your environment. See PHP manual for more information.
eZ Publish analyse image on each upload. EXIF information is available in eZ Publish via ezimage object. Here are some code examples for outputting EXIF and IFD0 information about one of my image file:
IFD0
{def $img = fetch( content, node, hash( node_id, 229 ) )}
{* IFD0 *}
{foreach $img.object.data_map.image.content.original.info.ifd0 as $index => $info}
{$index} {$info}
{/foreach}
ifd0 is an array.
Output:
| DateTime | 2006:09:01 14:29:06 |
| Exif_IFD_Pointer | 209 |
| Make | NIKON CORPORATION |
| Model | NIKON D70s |
| Orientation | |
| ResolutionUnit | 2 |
| Software | Ver.1.00 |
| XResolution | 300/1 |
| YCbCrPositioning | 2 |
| YResolution | 300/1 |
EXIF
{* EXIF *}
{def $img = fetch( content, node, hash( node_id, 229 ) )}
{foreach $img.object.data_map.image.content.original.info.exif as $index => $info}
{$index} {$info}
{/foreach}
| CFAPattern | |
| ColorSpace | 65535 |
| ComponentsConfiguration | |
| CompressedBitsPerPixel | 4/1 |
| Contrast | |
| CustomRendered | |
| DateTimeDigitized | 2006:09:01 14:29:06 |
| DateTimeOriginal | 2006:09:01 14:29:06 |
| DigitalZoomRatio | 1/1 |
| ExifImageLength | 532 |
| ExifImageWidth | 800 |
| ExifVersion | 0221 |
| ExposureBiasValue | 0/6 |
| ExposureMode | |
| ExposureProgram | 2 |
| ExposureTime | 10/4000 |
| FNumber | 100/10 |
| FileSource | |
| Flash | |
| FlashPixVersion | 0100 |
| FocalLength | 700/10 |
| FocalLengthIn35mmFilm | 105 |
| GainControl | |
| InteroperabilityOffset | 29353 |
| LightSource | |
| MakerNote | |
| MaxApertureValue | 43/10 |
| MeteringMode | 2 |
| Saturation | |
| SceneCaptureType | |
| SceneType | |
| SensingMethod | 2 |
| Sharpness | |
| SubjectDistanceRange | |
| UserComment | ASCII |
| WhiteBalance |
exif is an array.






