Version 4.1.2
This commit is contained in:
1 parent
3ba79295ee
commit
28bd025b35
1131 files changed
+63658
-20579
No files matched your search
+2
-2
@@ -79,13 +79,13 @@ class _GD extends \IPS\Image
|
||||
case 'gif':
|
||||
if ( $this->isAnimatedGif )
|
||||
{
|
||||
return $this->contents;
|
||||
return (string) $this->contents;
|
||||
}
|
||||
imagegif( $this->image );
|
||||
break;
|
||||
|
||||
case 'jpeg':
|
||||
$quality = \IPS\Settings::i()->image_jpg_quality ?: NULL;
|
||||
$quality = \IPS\Settings::i()->image_jpg_quality ?: 75;
|
||||
|
||||
imagejpeg( $this->image, NULL, $quality );
|
||||
break;
|
||||
|
||||
@@ -37,6 +37,11 @@ abstract class _Image
|
||||
{
|
||||
return function_exists( 'exif_read_data' );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Has the image been automatically rotated?
|
||||
*/
|
||||
public $hasBeenRotated = FALSE;
|
||||
|
||||
/**
|
||||
* Create Object
|
||||
@@ -97,14 +102,17 @@ abstract class _Image
|
||||
{
|
||||
case 3:
|
||||
$obj->rotate( 180 );
|
||||
$obj->hasBeenRotated = TRUE;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
$obj->rotate( -90 );
|
||||
$obj->hasBeenRotated = TRUE;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
$obj->rotate( 90 );
|
||||
$obj->hasBeenRotated = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -114,14 +122,17 @@ abstract class _Image
|
||||
{
|
||||
case 3:
|
||||
$obj->rotate( 180 );
|
||||
$obj->hasBeenRotated = TRUE;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
$obj->rotate( 90 );
|
||||
$obj->hasBeenRotated = TRUE;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
$obj->rotate( -90 );
|
||||
$obj->hasBeenRotated = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user