Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

olivervogel
Copy link
Member

@olivervogel olivervogel commented Jan 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant