Skip to content

Commit

Permalink
merge r16934 from branch 2.4 to trunk
Browse files Browse the repository at this point in the history
bug 2705 fixed: if the rotation is "0", no rotation is needed, we skip the
rotate function which behaves badly (in ExtIM) with a zero degree rotation.



git-svn-id: http://piwigo.org/svn/trunk@16936 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jul 23, 2012
1 parent 9a4a9d8 commit e23052b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/include/image.class.php
Expand Up @@ -133,7 +133,7 @@ function pwg_resize($destination_filepath, $max_width, $max_height, $quality, $a

$this->image->resize($resize_dimensions['width'], $resize_dimensions['height']);

if (isset($rotation))
if (!empty($rotation))
{
$this->image->rotate($rotation);
}
Expand Down

0 comments on commit e23052b

Please sign in to comment.