Skip to content

v4: add the imagick extension (without PDF) - #374

Merged
mnapoli merged 3 commits into
4.xfrom
v4-imagick
Dec 2, 2026
Merged

mnapoli merged 3 commits into
4.xfrom
v4-imagick

Conversation

@mnapoli

@mnapoli mnapoli commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

imagick as a shared extension, like gd, gmp, soap: installed but not loaded, enabled with extension=imagick in php/conf.d/*.ini.

  • ImageMagick 7.1.2 from Ubuntu 26.04 (libmagickwand-7.q16-10): PNG, JPEG, GIF, WebP, TIFF, plus AVIF (read/write) and HEIC (read) through the libheif plugins. Security fixes come from Ubuntu at each image rebuild, nothing to pin on our side.
  • No Ghostscript, so no PDF/PS: it would add 59 MB.
  • imagick 3.8.1 does not compile with PHP 8.6: master is pinned until the next release (requested in New release for PHP 8.6 Imagick/imagick#804), like APCu, redis and xdebug.

The runtime image grows by 39 MB (250 → 289 MB uncompressed, PHP 8.5 arm64): 31 packages, mostly image codecs, X11 and fontconfig libraries.

Users who do not enable imagick load none of these libraries: php maps the same 47 shared libraries with and without them. On Lambda (PHP 8.5, arm64, container image, hello world with PHP-FPM, 30 + 30 cold starts), no measurable difference: total cold start p50 149 ms without this PR vs 148 ms with it on Graviton3 (95% CI of the difference: -8.7 to +17.1 ms), 152 vs 159 ms across all CPUs (CI -27 to +39 ms).

@mnapoli mnapoli self-assigned this Dec 2, 2026
# Conflicts:
#	tests/test_2_extensions.php
#	tests/test_3_manual_enabling_extensions.php
#	tests/test_3_manual_extensions.ini
# Conflicts:
#	Dockerfile
#	tests/test_2_extensions.php
#	tests/test_3_manual_enabling_extensions.php
#	tests/test_3_manual_extensions.ini
@mnapoli
mnapoli merged commit 22c2006 into 4.x Dec 2, 2026
9 checks passed
@mnapoli
mnapoli deleted the v4-imagick branch December 2, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant