-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
Install GraphicsMagick by default, fixes #3569 #3629
Conversation
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.
This will need a little more work. I built it (make VERSION=test
in the containers/ddev-php-base directory). Run it then with docker run -it --rm drud/ddev-php-base:test
- The php extension is not enabled... I expect it's needed right? This currently just installs the utility. The
gmagick
extension needs to be installed. - The php default configs (/etc/php//conf.d) are not installed, but that may not be necessary.
You can see the setup for loading the PHP extension packages at https://github.com/drud/ddev/blob/cd2edafc5f6821ea11acb32891c3e96bb7aeb55e/containers/ddev-php-base/Dockerfile#L85-L98
No, we don't need anything from PHP. Just the GM binaries. |
As already said by Jonas, for TYPO3 we only need the binaries and no extension. Are there other requests to install GM by default where the PHP extension is needed? If yes, I'd add it. |
Also added the extension now. According to https://www.php.net/manual/en/gmagick.configuration.php no configuration is needed. |
Thanks! |
I guess phpimagick and phpgmagick are mutually exclusive:
|
This reverts commit 754ac97.
e782953
to
03edfd6
Compare
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 reverted the add of the php extension since it's incompatible with imagick, rebased, and pushed the relevant images.
Please test this and see if it does what you want, @gilbertsoft @jonaseberle - You can easily test on Gitpod with the gitpod link, or download the built artifacts from https://github.com/drud/ddev/actions/runs/1904743275
Another reason not using the extensions. Works like expected for TYPO3. |
I'm wondering how you are using graphicsmagick when ddev writes Imagemagick into the AdditionalConfig.php/additional.php (https://github.com/ddev/ddev/pull/1712/files) which overrules the normal settings? |
It's hard to understand your question @sal-lochbaum - On TYPO3 the additional.php does configure Graphicsmagick by default. And DDEV does have the package installed in ddev-webserver. And of course you can override the additional.php or turn off settings management. Full details about settings management at https://ddev.readthedocs.io/en/stable/users/usage/cms-settings/ Please open a new issue with a specific question, or join us in discord for a discussion. |
The Problem/Issue/Bug:
GraphicsMagick is often used with TYPO3 instead of ImageMagick.
How this PR Solves The Problem:
This patch adds the graphicsmagick package to the ddev-php-base image.
Related Issue Link(s):
Resolves #3569
Release/Deployment notes:
This change has no impact or side effects.