image icon indicating copy to clipboard operation
image copied to clipboard

Add possibility to use ImageInterface::fill() with colors or Images

Open olivervogel opened this issue 2 years ago • 0 comments

Currently ImageInterface::fill() only works with colors. This PR makes it possible to specify images as an alternative. The images can be specified as valid image sources and they are placed over the image as a texture.

Example

$image->fill('images/texture.png', 10, 10);

Issues

GD

  • Transparency gets lost in some cases after filling with image texture

Imagick

  • Fill with image texture has weird effects on animated images

olivervogel avatar Jan 12 '24 10:01 olivervogel