gthumb r2238 - in trunk: . libgthumb
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gthumb r2238 - in trunk: . libgthumb
- Date: Thu, 31 Jan 2008 18:36:16 +0000 (GMT)
Author: mjc
Date: Thu Jan 31 18:36:16 2008
New Revision: 2238
URL: http://svn.gnome.org/viewvc/gthumb?rev=2238&view=rev
Log:
2008-01-31 Michael J. Chudobiak <mjc svn gnome org>
* libgthumb/gth-exif-utils.c: (write_orientation_field):
Updated write_orientation_field to use the new exiv2-based
update_and_save_metadata function.
Modified:
trunk/ChangeLog
trunk/libgthumb/gth-exif-utils.c
Modified: trunk/libgthumb/gth-exif-utils.c
==============================================================================
--- trunk/libgthumb/gth-exif-utils.c (original)
+++ trunk/libgthumb/gth-exif-utils.c Thu Jan 31 18:36:16 2008
@@ -625,11 +625,17 @@
write_orientation_field (const char *local_file,
GthTransform transform)
{
- guint16 tf = (guint16) transform;
+ char *string_tf;
+ int tf;
+
+ tf = (int) transform;
+ if ((tf < 0) || (tf > 8))
+ tf = 1;
+ string_tf = g_strdup_printf ("%d", tf);
- if (local_file == NULL)
- return;
- gth_minimal_exif_tag_write (local_file, EXIF_TAG_ORIENTATION, &tf, 2);
+ update_and_save_metadata (local_file, local_file, "Exif.Image.Orientation", string_tf);
+
+ g_free (string_tf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]