fix picture orientation
This commit is contained in:
@@ -145,7 +145,7 @@ class Picture extends PhpObject {
|
||||
$sPicPath = self::getPicPath($sPicName);
|
||||
$sThumbPath = self::getPicPath($sPicName, 'thumbnail');
|
||||
|
||||
if(!file_exists($sThumbPath)) $asThumbInfo = ToolBox::createThumbnail($sPicPath, 400, 0, $sThumbPath/*, false, array('jpg', 'jpeg', 'gif', 'png'), true*/);
|
||||
if(!file_exists($sThumbPath)) $asThumbInfo = ToolBox::createThumbnail($sPicPath, 400, 0, $sThumbPath, false, array('jpg', 'jpeg', 'gif', 'png'), false, true);
|
||||
else $asThumbInfo = array('error'=>'', 'out'=>$sThumbPath);
|
||||
|
||||
return ($asThumbInfo['error']=='')?$asThumbInfo['out']:$sPicPath;
|
||||
|
||||
Reference in New Issue
Block a user