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

Request to enable gd extension #365

Closed
victormacko opened this issue Jul 3, 2019 · 2 comments
Closed

Request to enable gd extension #365

victormacko opened this issue Jul 3, 2019 · 2 comments

Comments

@victormacko
Copy link
Contributor

Thanks in advance for all the work being put into Bref -- it's really appreciated!
I asked the question about GD on slack a few weeks back but thought i'd put it here as well in the mean-time in the hope it might make it into the standard run-times in future.

Currently there's no way of using image-functions (eg. resizing images / cropping / etc) in bref -- i'm looking at processing images uploaded to S3 automatically (via messages from SNS).
From memory it was mentioned that the overhead of the extension is roughly 630kb.

Thanks in advance for considering it :)

@victormacko
Copy link
Contributor Author

victormacko commented Jul 11, 2019

Just on this -- I've spent a bunch of time compiling GD and run into a bunch of things (had to stop because of PHP version inconsistencies), but looks like it's definitely possible to have standalone layer with GD and it's associated libraries, separate from the standard Bref layer, and without having to alter anything in the existing bref layer (i'm yet to test it 100%, but it's certainly looking possible)

I've compiled the GD extension as a bundle with the separate libraries it needs, and uploaded it as an additional layer after the Bref layer in cloud-formation/serverless.
I then enabled the extension using a .ini file in the deployed code (/php/conf.d/php.ini).

@mnapoli
Copy link
Member

mnapoli commented Sep 10, 2019

Done in #396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants