Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -55,12 +55,13 @@ abstract class _Image
|
||||
/**
|
||||
* Create Object
|
||||
*
|
||||
* @param string $contents Contents
|
||||
* @param string $contents Contents
|
||||
* @param bool $checkRotation Check image to correct rotation
|
||||
* @return \IPS\Image
|
||||
* @throws \InvalidArgumentException
|
||||
* @link https://en.wikipedia.org/wiki/List_of_file_signatures
|
||||
*/
|
||||
public static function create( $contents )
|
||||
public static function create( string $contents, bool $checkRotation=TRUE )
|
||||
{
|
||||
/* Work out the type */
|
||||
$imageType = NULL;
|
||||
@@ -127,7 +128,7 @@ abstract class _Image
|
||||
}
|
||||
|
||||
/* Set EXIF data immediately */
|
||||
if( static::exifSupported() )
|
||||
if( static::exifSupported() AND $checkRotation )
|
||||
{
|
||||
$obj->setExifData( $contents );
|
||||
|
||||
|
||||
Reference in new issue
Block a user