"unrecognized option `-alpha'" error on older ImageMagick version

Created on 19 August 2014, almost 10 years ago
Updated 18 June 2024, 11 days ago

Problem/Motivation

In #1707176: Black PDF Preview generated with some PDFs β†’ , we introduced the usage of the -alpha. The option was added to ImageMagick 6.3.5-7 (released 2007-08-14). Currently, we don't check for the IM version, which cause error preventing usage of the module with older IM installation.

Proposed resolution

Implement hook_requirements to check for IM version. Alternatively, check for the IM version when adding the -alpha flag, and revert to the previous used method when not supported.

Original report by ebservant316

ImageMagick error 1: convert: unrecognized option `-alpha'

Getting this error when trying to use PDFPreview to generate an image of page 1 of my PDF. I am guessing that the Imagemagick running on my hosted server is the wrong version or wrongly configured.

What version do I need? Other solutions?

πŸ› Bug report
Status

Closed: outdated

Version

2.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States webservant316

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    17 years later I think we can probably close this. The last release in the 6.3 series of ImageMagick was in 2008 and the last 6.9 release was in 2022. That said, if there are issues with other options we're using we could potentially look at providing a minimum supported version and implement hook_requirements. But for now this can be closed.

Production build 0.69.0 2024