In January 2026 was released latest imagemagick v5.x
But pdfpreview is blocking imagemagick module update because of the compatibility dependency:
"drupal/imagemagick": "^3.7 || ^4.0"

Issue fork pdfpreview-3575613

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bohus ulrych created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

mstrelan made their first commit to this issue’s fork.

mstrelan’s picture

Status: Active » Needs review

Have not tested manually but the pipeline is green. Can someone please test?

bohus ulrych’s picture

Thanks for patch. But I was not able to upgrade module until I put in main composer.json this
"drupal/imagemagick": "5.0.1 as 4.9.9",
I think that composer was doing its checks before patch was applied. Don't know way how to solve it other way.

After that I was able to upgrade drupal/imagemagick 4.0.2 => 5.0.1
I used PDF preview as Field Format for my test PDF file field and image was correctly created.

kle’s picture

Even the hack above throws an error...
At this moment, I cant install the module on a fresh Drupal 11.4 with imagemagic and image_effects.

  • mstrelan committed 6b7999fd on 2.0.x
    task: #3575613 Support for ImageMagick 5.x
    
    By: bohus ulrych
    By:...

  • mstrelan committed 6bdd374e on 8.x-1.x
    task: #3575613 Support for ImageMagick 5.x
    
    By: bohus ulrych
    By:...
mstrelan’s picture

Status: Needs review » Fixed

Merged to 1.x and 2.x. If someone can test 8.x-1.x-dev I can release 8.x-1.3.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.