-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add ImageMagick PHP extension to support "Theming of icons" #263
Comments
Here our Dockerfile code to add Imagemagick.
|
Don't forget to cleanup the dpkg cache after the installation of the packages. |
@suntorytimed please add the cleanup Dockerfile code. Did you mean this, like in the Nextcloud Dockerfile?
|
@phlegx yes, something like this. It should be part of the RUN command that executes apt-get. You could also add
Docker provides some best practices (https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) They state that it is not necessary to run apt-get clean, because the official image does this already, but I do it anyways just to be safe. I also tend to split my commands in several RUNs so more snapshots are created and can be reused. I would also avoid installing sudo if you don't need it for specific tasks:
EDIT: And instead of ; use && to separate your commands. This way the next command will only be executed if the previous one was successful. |
What could make this be added to official images? Do you expect a merge request? |
Hello, I'm getting this error:
|
maybe try Or maybe it is not needed at all. in the full dockerfile example it is not listed either. |
@rubo77 work with libmagickcore-6.q16-3-extra thanks! |
What is the extra package for? Should we add it to the "full" docker file? |
As I can understand, this package is a dependence for compiling imagick's php extension: docker-php-ext-enable imagick |
There is a warning issued in Nextcloud 15 about 'imagick' php extension not being present. They highly recommend that it be installed. Fixes nextcloud#574, fixes nextcloud#263 Signed-off-by: Robert Dailey <rcdailey@gmail.com>
It seems that it does not work. Tested with nextcloud 15.0.2. |
Thanks! I didn't notice the second MR. I think this should not be closed until theming of icons is complete. |
This issue still isn't resolved (16.0.4) so shouldn't be closed. The SVG support is missing, as @fuse314 mentioned. |
Please see #759 and #594 (comment). |
In nextcloud 17, imagemagick svg support is used to convert various elements like folder icons. the package is missing in the official nextcloud:17-fpm image. The folders and my logo were black after the upgrade to 17. my workaround:
|
The current docker image doesn't provide the dependencies for "Theming of icons":
https://docs.nextcloud.com/server/13/admin_manual/configuration_server/theming.html#theming-of-icons
Please add the ImageMagick PHP extension and ImageMagick SVG support to the container to support custom favicons in settings/admin/theming of Nextcloud.
The text was updated successfully, but these errors were encountered: