Fix #2280: Meta data (rotation) not respected for camera images (ImageMagick)

This commit is contained in:
Lucas Bartholemy 2017-02-20 17:14:54 +01:00
parent 86a062513a
commit 14d11103de
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ HumHub Change Log
- Enh: Added getContextMenu for defining wallentry context options.
- Enh: Added editMode to WallEntry for allowing modal based edits.
- Fix: file-preview text overflow in HumHub theme.
- Fix #2280: Meta data (rotation) not respected for camera images (ImageMagick)
1.2.0-beta.1 (February 08, 2017)
--------------------------------

View File

@ -36,7 +36,7 @@ class ImageConverter
if (Yii::$app->getModule('file')->settings->get('imageMagickPath')) {
$convertCommand = Yii::$app->getModule('file')->settings->get('imageMagickPath');
$command = $convertCommand . " \"{$sourceFile}\" \"{$targetFile}\"";
$command = $convertCommand . " -auto-orient \"{$sourceFile}\" \"{$targetFile}\"";
$ret = passthru($command);
} else {
$gdImage = self::getGDImageByFile($sourceFile);