This commit is contained in:
apuc committed 2025-01-23 20:02:06 +03:00
1 parent 485c11de5f
commit 08cdf44b67
16 files changed
+240 -23

No files matched your search

+11
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
{
// включаем режим сопряжения цветов