- code review for image rotation;

This commit is contained in:
nikitasinelnikov
2020-07-31 00:51:45 +03:00
parent 45b12fcd69
commit 585870bb3d
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1201,7 +1201,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
* @return array
*/
public function rotate_uploaded_image( $movefile ) {
$image_fix_orientation = UM()->options()->get( 'image_fix_orientation' );
$image_fix_orientation = UM()->options()->get( 'image_orientation_by_exif' );
if ( $image_fix_orientation && $movefile['type'] == 'image/jpeg' ) {
$image = imagecreatefromjpeg( $movefile['file'] );
if ( $image ) {