This commit is contained in:
2026-05-30 16:58:45 +00:00
parent 323beeb886
commit 1361f8cd5e

View File

@@ -156,7 +156,13 @@ final class paper extends core
// Resizing the layer image // Resizing the layer image
$image->adaptiveResizeImage((int) round($blank['width'] * $layer['scale']), 0); $image->adaptiveResizeImage((int) round($blank['width'] * $layer['scale']), 0);
$image->roundCornersImage($layer['corners'], $layer['corners']);
if (!empty($layer['corners'])) {
// Received the layer image corners
// Masking the layer image with corners
$image->roundCornersImage($layer['corners'], $layer['corners']);
}
// Calculating the layer image coordinates by the layer image mask // Calculating the layer image coordinates by the layer image mask
$vertical = $blank['height'] - $before; $vertical = $blank['height'] - $before;