We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2c84b6 + 3617390 commit 7c51c84Copy full SHA for 7c51c84
composer.json
@@ -13,8 +13,10 @@
13
],
14
"require": {
15
"php": ">=5.3.0",
16
- "ext-gd": "*",
17
- "ext-exif": "*"
+ "ext-gd": "*"
+ },
18
+ "suggest": {
19
+ "ext-exif": "Auto-rotate jpeg files"
20
},
21
"autoload": {
22
"classmap": ["lib"]
lib/ImageResize.php
@@ -108,6 +108,11 @@ public function __construct($filename)
108
// http://stackoverflow.com/a/28819866
109
public function imageCreateJpegfromExif($filename){
110
$img = imagecreatefromjpeg($filename);
111
+
112
+ if (!function_exists('exif_read_data')) {
113
+ return $img;
114
+ }
115
116
$exif = @exif_read_data($filename);
117
118
if (!$exif || !isset($exif['Orientation'])){
0 commit comments