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])