docker icon indicating copy to clipboard operation
docker copied to clipboard

which imagemagick repo to install for fpm-alpine to add SVG support

Open dkebler opened this issue 1 year ago • 2 comments

Apparently the fpm-alpine image is lacking a repo/library for php/imagemagick which allows nc to support svg icons. Which one to load for debian has been posted #1414 but I can't determine which one to load for the latest fpm alpine nc 24. (can this be added to the Dockerfile for future releases?)

Module php-imagick in this instance has no SVG support. For better compatibility it is recommended to install it.

this is what is installed

/ # apk list -I | grep image
imagemagick-libs-7.1.0.35-r0 aarch64 {imagemagick} (ImageMagick) [installed]

these are the possibilities. Which one??

/ # apk search imagemagick
imagemagick-perlmagick-doc-7.1.0.35-r0
imagemagick-c++-7.1.0.35-r0
imagemagick6-6.9.12.48-r0
imagemagick-doc-7.1.0.35-r0
imagemagick6-dev-6.9.12.48-r0
imagemagick-dev-7.1.0.35-r0
imagemagick-static-7.1.0.35-r0
imagemagick-zsh-completion-5.8.1-r4
imagemagick6-libs-6.9.12.48-r0
imagemagick6-c++-6.9.12.48-r0
imagemagick6-doc-6.9.12.48-r0
imagemagick-perlmagick-7.1.0.35-r0
imagemagick-libs-7.1.0.35-r0
imagemagick-7.1.0.35-r0
/ # apk search magick
ruby-rmagick-4.2.5-r1
graphicsmagick-zsh-completion-5.8.1-r4
php8-pecl-imagick-dev-3.7.0-r0
imagemagick-perlmagick-doc-7.1.0.35-r0
graphicsmagick-1.3.38-r0
php81-pecl-imagick-3.7.0-r0
imagemagick-c++-7.1.0.35-r0
imagemagick-7.1.0.35-r0
php8-pecl-imagick-3.7.0-r0
imagemagick6-6.9.12.48-r0
graphicsmagick-dev-1.3.38-r0
imagemagick-doc-7.1.0.35-r0
php81-pecl-imagick-dev-3.7.0-r0
imagemagick6-dev-6.9.12.48-r0
vips-magick-8.12.2-r5
imagemagick-dev-7.1.0.35-r0
imagemagick-static-7.1.0.35-r0
imagemagick-zsh-completion-5.8.1-r4
imagemagick6-libs-6.9.12.48-r0
imagemagick6-c++-6.9.12.48-r0
imagemagick6-doc-6.9.12.48-r0
imagemagick-perlmagick-7.1.0.35-r0
graphicsmagick-doc-1.3.38-r0
imagemagick-libs-7.1.0.35-r0

the version of alpine in the container

/ # uname -a
Linux nextcloud-app 5.15.48-rockchip64 #22.05.3 SMP PREEMPT Wed Jun 22 07:27:54 UTC 2022 aarch64 Linux
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.2
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

from php info in the container

imagick

imagick module enabled
imagick module version 3.7.0
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version ImageMagick 7.1.0-35 Q16-HDRI aarch64 20062 https://imagemagick.org
Imagick using ImageMagick library version ImageMagick 7.1.0-35 Q16-HDRI aarch64 20062 https://imagemagick.org
ImageMagick copyright (C) 1999 ImageMagick Studio LLC
ImageMagick release date 2022-05-16
ImageMagick number of supported formats: 0

Directive Local Value Master Value
imagick.allow_zero_dimension_images 0 0
imagick.locale_fix 0 0
imagick.progress_monitor 0 0
imagick.set_single_thread 1 1
imagick.shutdown_sleep_count 10 10
imagick.skip_version_check 0 0

intl

dkebler avatar Sep 16 '22 14:09 dkebler

I tried this one

apk add php81-pecl-imagick

and the SVG warning is gone so looks like I hit on the one.

Is is now possible to add this command to the Dockerfile for future releases of the fpm alpine image?

dkebler avatar Sep 18 '22 15:09 dkebler

accepting PRs to the Dockerfile?

dkebler avatar Sep 21 '22 14:09 dkebler

duplicate of https://github.com/nextcloud/docker/issues/1414

J0WI avatar Dec 01 '22 00:12 J0WI

In my case adding RUN apk add imagemagick-svg to Dockerfile solved the problem.

Source: https://pkgs.alpinelinux.org/package/v3.19/community/ppc64le/imagemagick-svg

rafaelmaeuer avatar Mar 05 '24 13:03 rafaelmaeuer