Support Imagemagick 7 #2055

Closed
opened 2026-10-05 01:04:54 +02:00 by adam · 2 comments
Owner

Imagemagick 7 introduce breaking changes :

  • convert is deprecated in favor of magick (#2366)
  • -coalesce is not implied when formating webp which break compression

webp conversion should be handle like this :

magick "input.webp" -coalesce -filter Lanczos -resize 120x120! -strip -quality 70 -interlace line -sampling-factor 4:2:2 "output.webp"

Command detection should be handled with

if ('command -v magick') {
    shell_exec('magick ....');
} else {
    shell_exec('convert ....');
}
Imagemagick 7 introduce breaking changes : - convert is deprecated in favor of magick (#2366) - `-coalesce` is not implied when formating webp which break compression webp conversion should be handle like this : ```sh magick "input.webp" -coalesce -filter Lanczos -resize 120x120! -strip -quality 70 -interlace line -sampling-factor 4:2:2 "output.webp" ``` Command detection should be handled with ```php if ('command -v magick') { shell_exec('magick ....'); } else { shell_exec('convert ....'); } ``` <!-- github-sync-id:3062918893 -->
adam closed this issue 2026-10-05 01:04:54 +02:00
Author
Owner
Branch : https://github.com/Piwigo/Piwigo/tree/issue-2367-imagemagick7 <!-- github-comment-id:2979331610 -->
Author
Owner

branch merged

branch merged <!-- github-comment-id:3184395206 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2055