From 67735dc85fc4a25dcc3e0b30420b3ad5a6ac1c9f Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 4 Jun 2011 20:10:34 +0200 Subject: Autorotate images according to EXIF Orientation info This comes with a cost of decoding full image when only getting image size. --- src/setup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/setup.c') 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) -- cgit v1.2.3