Add new comment

From first lines of raw2image

From first lines of raw2image_start (called by _ex):

  if (O.user_flip >= 0)
    S.flip = O.user_flip;
  switch ((S.flip+3600) % 360)
    case 270:  S.flip = 5;  break;
    case 180:  S.flip = 3;  break;
    case  90:  S.flip = 6;  break;

flip/user_filp are bit-field. But if someone has specified user_flip in degrees it will work OK.

Specifically for CIFF (CRW) format camera sets rotation angle, not Orientation tag. This value is preserved after open_datastream (looks like we need to fix it for all cases in 0.18?)

-- Alex Tutubalin @LibRaw LLC