This commit is contained in:
2025-01-23 20:02:06 +03:00
parent 485c11de5f
commit 08cdf44b67
16 changed files with 240 additions and 23 deletions

View File

@ -40,6 +40,17 @@ class ImageGD
imagedestroy($this->img);
}
public function getBase64(): string
{
ob_start ();
imagepng($this->img);
$image_data = ob_get_contents ();
ob_end_clean ();
imagedestroy($this->img);
return base64_encode ($image_data);
}
public function makeCornersForImage($radius, $background): void
{
// включаем режим сопряжения цветов