[wp-trac] [WordPress Trac] #60798: Investigate potentially failing Imagick PDF alpha channel test
WordPress Trac
noreply at wordpress.org
Mon Mar 10 21:28:35 UTC 2025
#60798: Investigate potentially failing Imagick PDF alpha channel test
--------------------------+-----------------------
Reporter: swissspidy | Owner: antpb
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.8
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Comment (by adamsilverstein):
> 3.7.0 is just the version of the imagick extension, whereas 9.14 is the
version of the ImageMagick library used by imagick. Two different things.
> If we indeed need to check imagick version, then yes 9.14 is the wrong
version to compare to there.
We can use the same check in the `remove_pdf_alpha_channel` function:
{{{
$version = Imagick::getVersion();
// Remove alpha channel if possible to avoid black backgrounds for
Ghostscript >= 9.14. RemoveAlphaChannel added in ImageMagick 6.7.5.
if ( $version['versionNumber'] >= 0x675 ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60798#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list