-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Nette\Utils\Image::resize alpha broken (black background) #202
Comments
I can confirm that this hack works. I am having this issue on Windows as well as in production on Linux Ubuntu. |
What is you GD version and how is the GD installed (bundled / not-bundled)? |
I updated the initial post. |
dg
added a commit
that referenced
this issue
Oct 21, 2019
dg
added a commit
that referenced
this issue
Oct 21, 2019
dg
added a commit
that referenced
this issue
Oct 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version:
But the same bug can be observed on a production machine with Ubuntu Linux:
Bug Description
This (czech language) looks to be an evergreen. I am able to reproduce it with the latest version of package with the EXACT flag and PNG type. However I am positive that I also saw this with WEBP (as I originally had the problem with WEBP and switched to PNG to fix it, it actually helped ! For some time though and now it appeared again!? WTF.)
Steps To Reproduce
Expected Behavior
Image with transparency preserved.
Possible Solution
I traced the problem down to this line
$this->image = imagecrop($this->image, $r);
. Commenting it out fixes the alpha problem, but the image is not cropped, obviously :-)The text was updated successfully, but these errors were encountered: