diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-04-15 22:39:24 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-04-15 22:39:24 +0200 |
| commit | 6f0b21b11f8711ef425069b277a1c743202174a7 (patch) | |
| tree | 92977e4b13b4b270bfa4a09f8ca97d19f4495c8a /src/jpeg-utils.h | |
| parent | 713c2d86d9335a9c681357254d4bc4f817626259 (diff) | |
| download | cataract-6f0b21b11f8711ef425069b277a1c743202174a7.tar.xz | |
Add HAS_EXIF define
This brings a new HAS_EXIF define which is present when
EXIF information are available. Templates have been modified
to inform user when not available.
The test for EXIF metadata presence is fairly basic, we only look
for aperture, focal length and exposure time attributes. This might
be a subject to change in the future.
Diffstat (limited to 'src/jpeg-utils.h')
| -rw-r--r-- | src/jpeg-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h index 05a6a49..7cec3a7 100644 --- a/src/jpeg-utils.h +++ b/src/jpeg-utils.h @@ -62,6 +62,11 @@ void exif_data_free (ExifData *data); gchar * get_exif_data (ExifData *exif, const gchar *key); gchar * get_exif_data_fixed (ExifData *exif, const gchar *key); +/* + * Returns TRUE if the image contains the key specified + */ +gboolean exif_has_key (ExifData *exif, const gchar *key); + /* * resize_image: resize image pointed by src and save result to dst |
