mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers
MIT License
4.34k stars 388 forks source link

Support of libmagickwand #922

Open jeff1326 opened 6 months ago

jeff1326 commented 6 months ago

On copied the script install-php-extensions and modified it our side to support libmagickwand. We added imagemagick-dev in persistent instead of volatile.

imagick@alpine)
  buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent imagemagick libgomp imagemagick-dev"
  buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile"
  if [ $DISTRO_MAJMIN_VERSION -ge 319 ]; then
      buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ghostscript libheif libjxl libraw librsvg"
  fi
;;
imagick@debian)
  buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent imagemagick ^libmagickwand-6.q16-[0-9]+$ ^libmagickcore-6.q16-[0-9]+-extra$"
  buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmagickwand-dev"
;;

Unfortunately we lose update from this repos with this strategy.

This may not be the ideal how we did it but we didn't know how to support libmagickwand with a better way. Could we install it via https://github.com/mlocati/docker-php-extension-installer?tab=readme-ov-file#installing-specific-versions-of-an-extension ? Can libmagickwand can be added in this repository ?

Thanks

mlocati commented 6 months ago

If I understand correctly, you need the imagemagick-dev system package for your own needs (and not for executing PHP), right?