Unable to read orientation value

Bug #384495 reported by Nadia Alramli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Critical
Stani

Bug Description

I'm getting this error when running any action on a specific photo:

Error 0: Unable to open file: /home/nadia/Desktop/exper/example/00200.jpg:
Unknown orientation value (0)

Traceback (most recent call last):
  File "/home/nadia/projects/phatch/phatch/core/api.py", line 245, in get_photo
    photo = pil.Photo(image_file,image_index,save_metadata,folder)
  File "/home/nadia/projects/phatch/phatch/core/pil.py", line 358, in __init__
    self.rotate_exif()
  File "/home/nadia/projects/phatch/phatch/core/pil.py", line 511, in rotate_exif
    raise Exception(_('Unknown orientation value (%s)')%orientation)
Exception: Unknown orientation value (0)
*

I'm attaching an action list and two almost identical photos. Only one of them produces the error. Both photos were taken with a Nikon D60 Camera.
One more thing. After the error the execution is aborted even if I select 'Skip to Next image' and there are hundreds of other images to process.

Revision history for this message
Nadia Alramli (nadiana) wrote :
Revision history for this message
Nadia Alramli (nadiana) wrote :

If you run the actionlist on the sample photos provided you'll get this warning too:
Warning 0:
Failed to save metadata to /home/nadia/Desktop/exper/example_phatch/00199.jpg:
pyexiv2: sequence item 0: expected string, exceptions.TypeError found
Trying again by ignoring tags with following pattern:
Exif[.]Canon

I think they are related.

Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Critical
Revision history for this message
Stani (stani) wrote :

Thanks again for the excellent bug report.

Changed in phatch:
status: New → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.