Ignore:
Timestamp:
Apr 1, 2012, 2:02:36 AM (12 years ago)
Author:
plg
Message:

feature 2604: support rotation on derivatives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r13082 r13843  
    270270  }
    271271
     272  // we need to save the rotation angle in the database to compute
     273  // width/height of "multisizes"
     274  $rotation_angle = pwg_image::get_rotation_angle($file_path);
     275  $rotation = pwg_image::get_rotation_code_from_angle($rotation_angle);
     276 
    272277  $file_infos = pwg_image_infos($file_path);
    273278
     
    281286      'md5sum' => $md5sum,
    282287      'added_by' => $user['id'],
     288      'rotation' => $rotation,
    283289      );
    284290
     
    308314      'md5sum' => $md5sum,
    309315      'added_by' => $user['id'],
     316      'rotation' => $rotation,
    310317      );
    311318
Note: See TracChangeset for help on using the changeset viewer.