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

WordPress Trac noreply at wordpress.org
Mon Mar 18 11:30:18 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        |   Keywords:  dev-feedback
  Focuses:                |
--------------------------+-----------------------------
 The test
 `\Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview()`
 was introduced in #39216 / [56271].

 On some hosting providers, this test appears to be failing with errors
 such as this:

 {{{
 Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview
 The intermediate size could not be retrieved.
 Failed asserting that false is of type "array".

 /tmp/wp-test-runner/tests/phpunit/tests/image/editorImagick.php:680
 }}}

 We should investigate this failure to see whether it's an issue in core or
 with the hosting provider.

 The test mentions "Ghostscript version >= 9.14", so maybe it's just a
 matter of skipping the test if the installed Ghostscript version (`gs
 --version` I think) is older than that.

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


More information about the wp-trac mailing list