1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

handle when opacity is set to 0

This commit is contained in:
Damodar Lohani 2021-04-09 13:41:49 +05:45
parent b7920ab26c
commit 6c8cb0545b

View file

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