mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed cannot change image format [#3173]
This commit is contained in:
parent
fcf24a40e2
commit
a4481bfd33
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user