mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 21:48:30 +02:00
Fixed cannot change image format [#3173]
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
1. [](#bugfix)
|
||||
* Fixed `bin/gpm uninstall` script not working because of bad typehint [#3172](https://github.com/getgrav/grav/issues/3172)
|
||||
* Fixed `login: visibility_requires_access` not working [#3176](https://github.com/getgrav/grav/issues/3176)
|
||||
* Fixed cannot change image format [#3173](https://github.com/getgrav/grav/issues/3173)
|
||||
|
||||
# v1.7.3
|
||||
## 01/21/2021
|
||||
|
||||
@@ -383,8 +383,10 @@ trait ImageMediaTrait
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
$extension = strtolower($this->get('extension'));
|
||||
$this->format($extension);
|
||||
if ($this->format === 'guess') {
|
||||
$extension = strtolower($this->get('extension'));
|
||||
$this->format($extension);
|
||||
}
|
||||
|
||||
if (!$this->debug_watermarked && $this->get('debug')) {
|
||||
$ratio = $this->get('ratio');
|
||||
|
||||
Reference in New Issue
Block a user