summaryrefslogtreecommitdiffstats
path: root/konq-plugins/imagerotation/orient.py
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/imagerotation/orient.py')
-rwxr-xr-xkonq-plugins/imagerotation/orient.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/konq-plugins/imagerotation/orient.py b/konq-plugins/imagerotation/orient.py
index 0671876..8db06ad 100755
--- a/konq-plugins/imagerotation/orient.py
+++ b/konq-plugins/imagerotation/orient.py
@@ -42,13 +42,13 @@ if not tags:
print 'no EXIF information in', filename
sys.exit(1)
if not tags.has_key('Exif Offset') \
- or not tags.has_key('Image Orientation'):
+ or not tags.has_key('Image Qt::Orientation'):
print 'cannot get orientation info in', filename
sys.exit(1)
exifp = tags['Exif Offset']
endian = tags['Exif Endian']
-tagp = tags['Image Orientation'].field_offset
+tagp = tags['Image Qt::Orientation'].field_offset
orientp = exifp + tagp
@@ -93,8 +93,8 @@ os.write(fd,chr(newo))
# Thumbnail orientation :
thumb_ifdp = 0
-if tags.has_key('Thumbnail Orientation'):
- thumb_tagp = tags['Thumbnail Orientation'].field_offset
+if tags.has_key('Thumbnail Qt::Orientation'):
+ thumb_tagp = tags['Thumbnail Qt::Orientation'].field_offset
thumb_orientp = exifp + thumb_tagp
if endian == 'M': # MM byte order
thumb_orientp += 1