[wp-trac] [WordPress Trac] #60798: Investigate potentially failing Imagick PDF alpha channel test
WordPress Trac
noreply at wordpress.org
Wed Mar 27 14:33:07 UTC 2024
#60798: Investigate potentially failing Imagick PDF alpha channel test
------------------------------------+---------------------
Reporter: swissspidy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: Media | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+---------------------
Changes (by antpb):
* keywords: dev-feedback => dev-feedback has-patch
* milestone: Awaiting Review => 6.6
Comment:
I've attached a patch. I'm pretty certain the version check is checking
Immagemagick and not the correct imagick version. From the php docs it
says the function being used currently only returns the ImageMagick
version: https://www.php.net/manual/en/imagick.getversion.php
`Imagick::getVersion — Returns the ImageMagick API version`
We should just directly do the phpinfo() call to the module to get the
version.
Prior art also: https://github.com/WordPress/wordpress-
develop/blob/4f9b520d3e2531c9ffb9ee5c06a2e2a7e34f9c52/src/wp-
admin/includes/class-wp-debug-data.php#L540
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60798#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list