-
Notifications
You must be signed in to change notification settings - Fork 149
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
EZP-31377: Use imagick by default on Platform.sh to avoid memory issues #501
Conversation
Co-Authored-By: Konrad Oboza <34310128+konradoboza@users.noreply.github.com>
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.
Sorry, I have second thoughts about my approval here.
We already have configuration for imagemagick in ezplatform.yml:
ezpublish:
imagemagick:
enabled: true
path: /usr/bin/convert
I think we should use that ( currently not used/refered to at all in meta repo), instead of setting the liip_imagine.driver
parameter directly
@vidarl On closer look those settings have been deprecated since 5.4:
What made you think this should be used? Are there some doc still referring to it that should be fixed? |
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 was made aware of these settings when working on a migration. Was not aware that they were only used for interjecting into legacy. Your PR looks good then
Ready for testing again then @micszo |
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'm still verifying it but looks like there is no parameter liip_imagine.driver
in
php bin/console debug:container --parameters --env=dev | grep liip_imagine
similar parameter is liip_imagine.driver_service -> liip_imagine.gd
, but its resolved from config, not parameters
@damianz5 Ok, do you see a way we can set it dynamically then? |
Updated - ready for retest |
Thanks @damianz5 👍 👍 PS: I took the liberty of removing the dot in the param name now to make to more clear it's global param. Status: Ready for QA now |
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.
Retested successfully.
2.5
GD uses PHP memory and hence it's better if we can use imagick if it's available to avoid risking running into php memory issues on larger images.
TODO:
$ composer fix-cs
).