'Set canvas' effect is not compatible with image magick

Created on 6 September 2024, 3 months ago

Problem/Motivation

'Set canvas' effect is not compatible with image magick.

Steps to reproduce

Add Set canvas effect 600*400 #ffffff 100% to image with size 400*400.

And have no effect... But with gd all ok.

image magick 6.9

πŸ› Bug report
Status

Active

Version

3.6

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia vvs Russia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vvs
  • πŸ‡ΊπŸ‡ΈUnited States kruser

    Same, I'm getting:

    The image toolkit 'imagemagick' failed processing 'set_canvas' for image 'core/modules/image/sample.png'. Reported error: Error - Call to undefined method Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\SetCanvas::addArgument()
    

    ImageMagick Version: 4.0.2
    image_effects Version: 8.x-3.6

    ImageMagick 6.9.11-60

  • πŸ‡¬πŸ‡§United Kingdom mistergroove

    Also getting a similar issue:

    The image toolkit 'imagemagick' failed processing 'set_canvas' for image 'public://productimages/19577/1719151873/19577.png'. Reported error: Error - Call to undefined method Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\SetCanvas::escapeArgument()

    Drupal core 10.3.6

    imagemagick: 4.0.2
    image_effects: 8.x-3.6

    Works on server with ImageMagick: 6.9.10-23 but not on server with ImageMagick 6.9.11-60

  • πŸ‡ΊπŸ‡ΈUnited States karlshea Minneapolis πŸ‡ΊπŸ‡Έ

    This is due to πŸ“Œ Switch command line escaping to Symfony Process Fixed , both addArgument and escapeArgument were removed in that issue.

Production build 0.71.5 2024