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

How to change image background with transparent color? #29

Open
lamkute opened this issue Jul 5, 2021 · 1 comment
Open

How to change image background with transparent color? #29

lamkute opened this issue Jul 5, 2021 · 1 comment

Comments

@lamkute
Copy link

lamkute commented Jul 5, 2021

hi,

the default image is black when use this: $image = new PHPImage(400, 400);
is there any way to change to other color without edit PHPImage.php file?
thank you!

@antonlukin
Copy link

Hello,
you can do it manually using rectangle() method right after class init.

You can also try to use my fork of this library. There is such a possibility by default: https://github.com/antonlukin/poster-editor/blob/master/example/canvas.php

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

No branches or pull requests

2 participants