Skip to content

Commit d26a081

Browse files
committed
fix: exclude HEIF/JXL from GraphicsMagick static build
GraphicsMagick auto-detects libheif/libjxl headers in the buildroot but the API versions are often incompatible (e.g. GM 1.3.46 uses heif_colorspace_nonvisual which was added in libheif 2.4+, while static-php-cli builds an older version). Disable both to prevent compile errors. These formats are not needed for typical web image processing — JPEG, PNG, WebP, and GIF cover the common use cases.
1 parent 6fef646 commit d26a081

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SPC/builder/unix/library/graphicsmagick.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ protected function build(): void
2323
'--disable-openmp',
2424
'--without-x',
2525
'--without-perl',
26+
// HEIF/JXL: GraphicsMagick auto-detects libheif/libjxl from the
27+
// buildroot but the API versions are often incompatible (e.g.
28+
// GM 1.3.46 expects libheif symbols added in 2.4+). Exclude them
29+
// to avoid compile errors. Neither format is needed for typical
30+
// WordPress/web image processing (JPEG/PNG/WebP/GIF suffice).
31+
'--without-heif',
32+
'--without-jxl',
2633
'--enable-shared=no',
2734
'--enable-static=yes',
2835
);

0 commit comments

Comments
 (0)