How to flood fill the frame with a pattern image using imagick php class?
问题 I want to flood fill the frame with tiled image instead of color. Currently im using this codes $imagick = new \Imagick('image.jpg'); $imagick->scaleImage(300, 300, false); // Create frame placeholder $imagick->frameimage( 'red','30','30', 30, 0); // Flood fill with color $imagick->floodFillPaintImage('green', 10, '#6e0000',0, 0,false ); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); and the result: but i want a result like this Thank you very much! 来源: https:/