[wp-trac] [WordPress Trac] #60798: Investigate potentially failing Imagick PDF alpha channel test

WordPress Trac noreply at wordpress.org
Tue Mar 26 09:42:26 UTC 2024


#60798: Investigate potentially failing Imagick PDF alpha channel test
--------------------------+------------------------------
 Reporter:  swissspidy    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Comment (by swissspidy):

 tl;dr from the above Slack discussion:

 `\WP_Image_Editor_Imagick::remove_pdf_alpha_channel` is currently checking
 the ''ImageMagick'' version, but it looks like we need to check the
 ''Imagick'' version via `phpversion( 'imagick' )`.

 So maybe even as simple as `version_compare( phpversion( 'imagick' ),
 '9.14', '>=' )` would work.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60798#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list