Skip to content

Commit 33fab28

Browse files
committed
fix in height/width for avif
1 parent b7010cc commit 33fab28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ImageResize.php

+2
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ public function __construct($filename)
166166

167167
case IMAGETYPE_AVIF:
168168
$this->source_image = imagecreatefromavif($filename);
169+
$this->original_w = imagesx($this->source_image);
170+
$this->original_h = imagesy($this->source_image);
169171
break;
170172

171173
case IMAGETYPE_BMP:

0 commit comments

Comments
 (0)