Fixed cannot change image format [#3173]

This commit is contained in:
Matias Griese 2021-01-25 15:25:02 +02:00
parent fcf24a40e2
commit a4481bfd33
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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');