-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fixes black background for png images in wysiwyg editors #16733
Fixes black background for png images in wysiwyg editors #16733
Conversation
Hi @eduard13. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
It looks like we should perform a check that |
Thank you a lot @rogyar for the suggestion. |
@eduard13 Can you check the errors in Travis? |
@osrecio looks like this issue is caused by declaring strict types. Do you think is it ok, if we set 1 in order to pass an int value? Thank you. |
/** | ||
* Keep the transparency for the images in the wysiwyg editors | ||
*/ | ||
const KEEP_TRANSPARENCY = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need constant fir true value in this class, just assign true to property when it needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated it, thanks.
Hi @osrecio, thank you for the review. |
Hi @eduard13. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
This PR fixes the black background for png images, which are uploaded in wysiwyg editors. This issue appears only for GD2 image processing library.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist