@@ -159,9 +159,6 @@ public function __construct($filename)
159
159
160
160
case IMAGETYPE_WEBP :
161
161
$ this ->source_image = imagecreatefromwebp ($ filename );
162
- $ this ->original_w = imagesx ($ this ->source_image );
163
- $ this ->original_h = imagesy ($ this ->source_image );
164
-
165
162
break ;
166
163
167
164
case IMAGETYPE_AVIF :
@@ -171,9 +168,6 @@ public function __construct($filename)
171
168
break ;
172
169
173
170
case IMAGETYPE_BMP :
174
- if (version_compare (PHP_VERSION , '7.2.0 ' , '< ' )) {
175
- throw new ImageResizeException ('For bmp support PHP >= 7.2.0 is required ' );
176
- }
177
171
$ this ->source_image = imagecreatefrombmp ($ filename );
178
172
break ;
179
173
@@ -323,10 +317,6 @@ public function save($filename, $image_type = null, $quality = null, $permission
323
317
break ;
324
318
325
319
case IMAGETYPE_BMP :
326
- if (version_compare (PHP_VERSION , '7.2.0 ' , '< ' )) {
327
- throw new ImageResizeException ('For WebP support PHP >= 7.2.0 is required ' );
328
- }
329
-
330
320
if (!empty ($ exact_size ) && is_array ($ exact_size )) {
331
321
$ dest_image = imagecreatetruecolor ($ exact_size [0 ], $ exact_size [1 ]);
332
322
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
0 commit comments