generated from mirzaev/pot-php
corners
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user