Rotate according to EXIF data fails with "NameError: global name 'EXIF' is not defined"

Bug #1645752 reported by Rüdiger Kupper on 2016-11-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
simple-image-reducer (Ubuntu)

Bug Description

When selecting option "Rotate according to EXIF data", simple-image-reducer fails with the following traceback:

kup@rechner-lz-03:~$ simple-image-reducer 'image20161129_160242498.jpg'
Traceback (most recent call last):
  File "/usr/bin/simple-image-reducer", line 507, in execute_iter
  File "/usr/bin/simple-image-reducer", line 460, in execute_task
    tags = EXIF.process_file(open(input), details=False)
NameError: global name 'EXIF' is not defined

I believe it is independent of the image having EXIF data or not. I attach the image I used above for testing.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: simple-image-reducer 1.0.2-3
ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24
Uname: Linux 4.4.0-47-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Nov 29 16:03:00 2016
InstallationDate: Installed on 2016-05-10 (203 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
PackageArchitecture: all
SourcePackage: simple-image-reducer
UpgradeStatus: No upgrade log present (probably fresh install)

Amr Ibrahim (amribrahim1987) wrote :

Is this fixed in the updated version?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers