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

Unwanted color effect with resizeCanvas() and transparent colors #1393

Closed
olivervogel opened this issue Aug 13, 2024 · 1 comment
Closed
Milestone

Comments

@olivervogel
Copy link
Member

Describe the bug

If xxx is called with transparent color as background, an unwanted effect of overlapping colors is created.

Code Example

$image = ImageManager::imagick()
    ->read($path)
    ->resizeCanvas(500, 500, background: 'ff550099')
    ->toPng();

Expected behavior

The background color should be completely and uniformly transparent.

Images

localhost

Environment (please complete the following information):

  • PHP Version: PHP 8.3
  • Intervention Image Version: 3.7
  • GD or Imagick: Imagick
@olivervogel
Copy link
Member Author

Fixed as of 3.8.0

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

No branches or pull requests

1 participant