fix for border with border radius issue
This commit is contained in:
parent
7b81ce2550
commit
d82bb692b2
|
@ -346,15 +346,15 @@ App::get('/v1/storage/files/:fileId/preview')
|
|||
if (!empty($background)) {
|
||||
$image->setBackground('#'.$background);
|
||||
}
|
||||
|
||||
if (!empty($borderWidth) ) {
|
||||
$image->setBorder($borderWidth, '#'.$borderColor);
|
||||
}
|
||||
|
||||
if (!empty($borderRadius)) {
|
||||
$image->setBorderRadius($borderRadius);
|
||||
}
|
||||
|
||||
if (!empty($borderWidth) && !empty($borderColor) ) {
|
||||
$image->setBorder($borderWidth, '#'.$borderColor);
|
||||
}
|
||||
|
||||
if (!empty($opacity)) {
|
||||
$image->setOpacity($opacity);
|
||||
}
|
||||
|
@ -367,7 +367,7 @@ App::get('/v1/storage/files/:fileId/preview')
|
|||
|
||||
$data = $image->output($output, $quality);
|
||||
|
||||
$cache->save($key, $data);
|
||||
// $cache->save($key, $data);
|
||||
|
||||
$response
|
||||
->setContentType($outputs[$output])
|
||||
|
|
Loading…
Reference in a new issue