Changeset 22716


Ignore:
Timestamp:
May 17, 2013, 1:13:29 PM (11 years ago)
Author:
plg
Message:

wrong calculus for the rotation angle when using jpegtran

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rotateImage/functions.inc.php

    r16981 r22716  
    4747
    4848    if (isset($conf['rotate_image_jpegtran']) and $conf['rotate_image_jpegtran']) {
    49       $angle = ($angle + 180) % 360;
     49      $angle = 360 - $angle;
    5050      $command = 'jpegtran -copy all -rotate '.$angle.' -outfile '.$row['path'].' '.$row['path'];
    5151      exec($command);
Note: See TracChangeset for help on using the changeset viewer.