Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 419 Bytes

Image.md

File metadata and controls

16 lines (15 loc) · 419 Bytes

图像处理 Image

// 创建实例
$intervention = ImageHelper::intervention(['driver' => 'gd']);
$image = $intervention->canvas(400, 300, '#000000');
$image->text('Hello, world!', 200, 150, function ($font) {
	$font->size(60);
	$font->color('#FFFFFF');
	$font->align('center');
	$font->valign('middle');
});
$path = __DIR__ . '/output.jpg';
$image->save($path);
文档 https://image.intervention.io/v2/