From 63771101e134b9065b6673a8b70b8d4014d359e9 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 16 Mar 2013 21:10:55 +0100 Subject: Add support for writing external EXIF metadata back to images Turned off by default, this will copy all data from supplied external EXIF metadata file back to all generated image files. All user overrides are still applied on top of it. Another reason for turning this off is file size concern, target image files would carry a lot more information that may not be always needed and would increase total amount of data transferred. --- sample/src/CIAF_1/index.xml | 7 +++++-- sample/src/setup.xml | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'sample/src') diff --git a/sample/src/CIAF_1/index.xml b/sample/src/CIAF_1/index.xml index 24433fd..5d9ad5a 100644 --- a/sample/src/CIAF_1/index.xml +++ b/sample/src/CIAF_1/index.xml @@ -108,7 +108,8 @@ Photo editors and RAW workflow software usually strip big deal of metadata unknown to them. Things like camera makernote data are usually lost. Yet it may contain interesting information like lens used, crop factor/focal length converted to 35 mm film equivalent or even camera temperature.

Any format that the Exiv2 library is able to read can be used as a source of EXIF/IPTC information. Use cgg-dirgen to supply external metadata the same way like for supplied thumbnails. By default, the ".exv" file extension is used (default for exiv2 commandline tool).

That said, if you extract and save original metadata and supply them in gallery source XML files, you may be able to display more EXIF information at the end. It's wise to either point to an original RAW file or (to save space) use the exiv2 commandline tool to extract the metadata.
- Example: exiv2 -eeic -f *.cr2 extracts EXIF, IPTC and JPEG Comment information to separate .exv files for all Canon CR2 files. + Example: exiv2 -eeic -f *.cr2 extracts EXIF, IPTC and JPEG Comment information to separate .exv files for all Canon CR2 files.

+ Turning the setup key /gallery_setup/images/write_supplied_exif on will write supplied data to all generated image files (except of thumbnails which are always special). ]]> @@ -123,7 +124,9 @@ Changes can be made locally for specific item or globally for whole album (with the former taking priority).

- All such changes are written in generated image files in all present metadata fields. This also applies for user supplied images which are normally not supposed to be changed or resized. + All such changes are written in generated image files in all present metadata fields. This also applies for user supplied images which are normally not supposed to be changed or resized.

+ + Please note that source timestamps to shift are taken from image file metadata, so that if external EXIF metadata are being used for the particular item but are not set to be written back in the image, datetime shifting may take place on incorrect timestamp. This is normally not a problem since the external EXIF metadata feature was introduced to typically regain lost data from RAW conversion and timestamps should match. This may be subject to change in future. ]]> diff --git a/sample/src/setup.xml b/sample/src/setup.xml index 75cce85..e85d006 100644 --- a/sample/src/setup.xml +++ b/sample/src/setup.xml @@ -25,6 +25,11 @@ + + + + + -- cgit v1.2.3