mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 14:13:46 +09:00
- code review for image rotation;
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user