Closed whoismattclark closed 7 years ago
Happened again. Looks like an issue with rotated photos.
3791(2779): IMG_4907.JPG IMG_4907 5* 663DDA…/rUtrPH… taken:20090304-015529-0600 edit:20121124-042433-0600 import:20090317-225836-0500
Orig: 1704x2272 (1.0000/1.0000), Masters/2009/Mar 17, 2009/IMG_4907.JPG (found)
Mod : 1704x2272, Previews/2009/Mar 17, 2009/IMG_4907.JPG (found)
=> 0/IMG_4907_v1.JPG
Flip: EXIF 90°/0°, photo 0°, face(s): 0°
GPS : lat: lng:,
iphoto2xmp.rb:213:in `block in calc_faces': undefined method `*' for nil:NilClass (NoMethodError)
from iphoto2xmp.rb:197:in `collect'
from iphoto2xmp.rb:197:in `calc_faces'
from iphoto2xmp.rb:757:in `block in <main>'
from iphoto2xmp.rb:414:in `each'
from iphoto2xmp.rb:414:in `<main>'
It seems there is a problem with the image rotation factor, it is neither 0 nor 90, 180 or 270 degrees. I don't quite believe that to be the case though ... I have uploaded another patch that can serve as a fallback, In this case the faces might be positioned incorrectly but the app shouldn't stop at the image. Can you try the updated version?
Thanks for the patch!
I assume it's an issue with that image file but I don't know where to start debugging.