diff --git a/CHANGELOG.md b/CHANGELOG.md index e960b4d375..f9d9744e5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ HumHub Changelog - Fix #4649: Success message rendered although password validation failed - Fix #4717: Repsonsive layout alignment issue on small screens - Fix #4715: Call to `Content::canArchive()` throws error on global content +- Fix #4744: Banner image orientation not being processed - Fix #4743: Hide "Like" link when no permission "Can like" diff --git a/protected/humhub/libs/ProfileBannerImage.php b/protected/humhub/libs/ProfileBannerImage.php index d24e5a9a58..7dfd176c3e 100644 --- a/protected/humhub/libs/ProfileBannerImage.php +++ b/protected/humhub/libs/ProfileBannerImage.php @@ -8,6 +8,7 @@ namespace humhub\libs; +use humhub\modules\file\libs\ImageHelper; use Imagine\Image\Box; use Imagine\Image\ManipulatorInterface; use yii\imagine\Image; @@ -74,6 +75,7 @@ class ProfileBannerImage extends ProfileImage // Make sure original file is max. 800 width $image = Image::getImagine()->open($file); + ImageHelper::fixJpegOrientation($image, $file); if ($image->getSize()->getWidth() > 2000) { $image->resize($image->getSize()->widen(2000)); }