From d82bb692b2e92361b34d8c2275d8c52ee43391bb Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 9 Apr 2021 12:49:46 +0545 Subject: [PATCH] fix for border with border radius issue --- app/controllers/api/storage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 4e6754c586..8401c93541 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -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])