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

fix black background when cropping a transparent background #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vnxx
Copy link

@vnxx vnxx commented Nov 10, 2021

I have an issue when cropping a transparent background. When I crop it the background became black, not transparent. It's happened in my hosting provider (PHP 8.0).
And then I read this:
https://stackoverflow.com/questions/54884501/php-gd-adds-black-background-around-cropped-source-image

I have tested this and it works fine in my local machine (PHP 7.3) and in my hosting provider (PHP 8.0)

I have an issue when cropping a transparent background. When I crop it the background became black
@vnxx vnxx changed the title fix black background when croping image fix black background when cropping a transparent background Nov 10, 2021
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.

1 participant