summaryrefslogtreecommitdiff
path: root/src/setup.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-06-04 20:10:34 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-06-04 20:10:34 +0200
commit67735dc85fc4a25dcc3e0b30420b3ad5a6ac1c9f (patch)
tree91407fb189dd2a97283c844297d7b6dab0c19152 /src/setup.c
parentee24863518448604b5600ab1e426d818975a76bb (diff)
downloadcataract-67735dc85fc4a25dcc3e0b30420b3ad5a6ac1c9f.tar.xz
Autorotate images according to EXIF Orientation info
This comes with a cost of decoding full image when only getting image size.
Diffstat (limited to 'src/setup.c')
-rw-r--r--src/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/setup.c b/src/setup.c
index e88a292..f053555 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -95,6 +95,7 @@ parse_setup_xml (const gchar *filename)
setup->use_iptc_exif = xml_file_get_node_attribute_boolean (xml, "/gallery_setup/images/use_iptc_exif", "value", FALSE);
setup->erase_exif_thumbnail = xml_file_get_node_attribute_boolean (xml, "/gallery_setup/images/erase_embed_thumbnail", "value", FALSE);
setup->nofullsize = xml_file_get_node_present (xml, "/gallery_setup/images/nofullsize");
+ setup->autorotate = xml_file_get_node_attribute_boolean (xml, "/gallery_setup/images/autorotate", "value", TRUE);
s = xml_file_get_node_attribute (xml, "/gallery_setup/images/squared_thumbnails", "type");
if (s && g_ascii_strcasecmp (s, "simple") == 0)