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

Unable to set emerging background to transparent with resizeCanvas() #115

Closed
damonkelley opened this issue Apr 7, 2014 · 4 comments
Closed

Comments

@damonkelley
Copy link

Per #51

When I attempt to resize the canvas of a PNG using the following:

$colorFormat = [0, 0, 0, 0];
$img->resizeCanvas(120, 120, 'center', false, $colorFormat);

It results in a black emerging background.

intervention image

I also tried this with $colorFormat = 'rgba(0, 0, 0, 0)';, and got the same results.

Any insights on this?

@olivervogel
Copy link
Member

Please update to 6c0574ddba8 and try again.

Commit is not tagged, yet.

@damonkelley
Copy link
Author

I update to 6c0574d, but I am still getting the same result.

@olivervogel
Copy link
Member

That's strange, becaue it's tested here. Can you provide more details? (phpinfo, GD version, code snippets).

@damonkelley
Copy link
Author

I got this sorted out. As it turns out, I had not saved the image to the server before resizing and saving it.

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