0
我在我的Laravel 5.3中使用Intervention Image進行圖像處理,我想將瓷磚文字水印添加到圖像中。干預圖像:瓷磚文字水印
$img = Image::make(storage_path('app'.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.$media->file_path));
// use callback to define details
$width = $img->width();
$height = $img->height();
$data = $img->text($watermark, 15, 25, function($font) {
$font->file(public_path('../fonts/Xerox Serif Wide.ttf'));
$font->size(36);
$font->color(array(0,0,0, 0.3));
$font->align('center');
$font->valign('top');
$font->angle(45);
})
但其不工作它把與角單個行中給出,其中,如我想重複文本,直到它到達圖像的端部。
謝謝。
感謝討伐異教徒艾哈邁德,它作爲魅力的工作。 –