handle when opacity is set to 0
This commit is contained in:
parent
b7920ab26c
commit
6c8cb0545b
|
@ -343,7 +343,7 @@ App::get('/v1/storage/files/:fileId/preview')
|
|||
|
||||
$image->crop((int) $width, (int) $height);
|
||||
|
||||
if (!empty($opacity)) {
|
||||
if (!empty($opacity) || $opacity==0) {
|
||||
$image->setOpacity($opacity);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue