Skip to content

Commit

Permalink
Store mimeType on remote asset
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Apr 28, 2020
1 parent 8e112b4 commit 7dc09b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/RemoteAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class RemoteAsset
public $width;
public $height;
public $extension;
public $mimeType;

public function __construct ($url)
{
Expand Down Expand Up @@ -49,6 +50,7 @@ public function __construct ($url)
17 => 'ico',
18 => 'count',
][$size[2]];
$this->mimeType = $size['mime'];
}

public function getUrl ()
Expand Down

0 comments on commit 7dc09b7

Please sign in to comment.