← Back to team overview

phatch-dev team mailing list archive

[Bug 384495] Re: Unable to read orientation value

 

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
   Importance: Undecided => Critical

** Changed in: phatch
     Assignee: (unassigned) => stani (stani)

-- 
Unable to read orientation value
https://bugs.launchpad.net/bugs/384495
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: New

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.



References