comparison src/thumb.c @ 1567:c776b1310ca6

added an option to write image orientation to the metadata
author nadvornik
date Sun, 26 Apr 2009 09:01:35 +0000
parents 24a12aa0cb54
children 956aab097ea7
comparison
equal deleted inserted replaced
1566:3d9f5c078521 1567:c776b1310ca6
140 140
141 if (!tl->cache_hit && options->image.exif_rotate_enable) 141 if (!tl->cache_hit && options->image.exif_rotate_enable)
142 { 142 {
143 if (!tl->fd->exif_orientation) 143 if (!tl->fd->exif_orientation)
144 { 144 {
145 tl->fd->exif_orientation = metadata_read_int(tl->fd, "Exif.Image.Orientation", EXIF_ORIENTATION_TOP_LEFT); 145 tl->fd->exif_orientation = metadata_read_int(tl->fd, ORIENTATION_KEY, EXIF_ORIENTATION_TOP_LEFT);
146 } 146 }
147 147
148 if (tl->fd->exif_orientation != EXIF_ORIENTATION_TOP_LEFT) 148 if (tl->fd->exif_orientation != EXIF_ORIENTATION_TOP_LEFT)
149 { 149 {
150 rotated = pixbuf_apply_orientation(pixbuf, tl->fd->exif_orientation); 150 rotated = pixbuf_apply_orientation(pixbuf, tl->fd->exif_orientation);