diff --git a/CHANGELOG.md b/CHANGELOG.md index 2875cfb..a08bde4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.5 - 2020-04-28 +### Fixed +- Remote assets now store mimetype correcty + ## 1.0.4 - 2020-03-04 ### Added - Add method of re-initializing dynamic image JS diff --git a/composer.json b/composer.json index d18d529..8e31184 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "ether/thumbro", "description": "Craft CMS image transformations powered by Thumbor", - "version": "1.0.4", + "version": "1.0.5", "type": "craft-plugin", "license": "proprietary", "minimum-stability": "dev", diff --git a/src/RemoteAsset.php b/src/RemoteAsset.php index 0f28559..5ff52f6 100644 --- a/src/RemoteAsset.php +++ b/src/RemoteAsset.php @@ -21,6 +21,7 @@ class RemoteAsset public $width; public $height; public $extension; + public $mimeType; public function __construct ($url) { @@ -49,6 +50,7 @@ public function __construct ($url) 17 => 'ico', 18 => 'count', ][$size[2]]; + $this->mimeType = $size['mime']; } public function getUrl ()