Images with EXIF rotation "bot_right" are not rotated

Bug #1072051 reported by tenminjoe@yahoo.com on 2012-10-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libapache-gallery-perl (Ubuntu)
Undecided
Unassigned

Bug Description

The autorotate feature works only for images with the EXIF rotation set to "right_top" or "left_bot" - images marked "bot_right" are not rotated.

The fix is to update Gallery.pm, changing this:

   if ($imageinfo->{Orientation} eq 'right_top') {
    $rotate=1;
   }
   elsif ($imageinfo->{Orientation} eq 'left_bot') {
    $rotate=3;
   }

to this:

   if ($imageinfo->{Orientation} eq 'right_top') {
    $rotate=1;
   }
   elsif ($imageinfo->{Orientation} eq 'bot_right') {
    $rotate=2;
   }
   elsif ($imageinfo->{Orientation} eq 'left_bot') {
    $rotate=3;
   }

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

Other bug subscribers