wordpress-develop/tests/phpunit/tests/image
Anthony Burchell 287fd501f2 Media: Adjust PDF upload handling to remove non-opaque alpha channels from previews.
Previously, Imagick uploads of PDF files with non-opaque alpha channels would result in a black background replacing alpha in the generated thumbnail. This patch adds a `remove_pdf_alpha_channel()` function in the Imagick classes to use a white background instead.

Props gitlost, joemcgill, joedolson, launchinteractive, emirpprime, mwtsn, ceer, maysi, madejackson, 6adminit, costdev, oglekler.
Fixes #39216.


git-svn-id: https://develop.svn.wordpress.org/trunk@56271 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-19 22:33:47 +00:00
..
base.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dimensions.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
editor.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
editorGd.php Tests: Bring some consistency to WP_Image_Editor_GD and WP_Image_Editor_Imagick tests. 2022-10-07 00:40:07 +00:00
editorImagick.php Media: Adjust PDF upload handling to remove non-opaque alpha channels from previews. 2023-07-19 22:33:47 +00:00
functions.php Media: Deprecate the 'edit_custom_thumbnail_sizes' filter and disable the "Apply changes to [Thumbnail|All|All except thumbnail]" UI in the image editor. Add a (boolean) filter to reenable that UI. 2023-06-18 14:22:40 +00:00
header.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
intermediateSize.php Media: Revert WebP generation. 2022-09-19 22:51:53 +00:00
meta.php Media: Fix TypeError and improve wp_exif_frac2dec() to only return int or float. 2021-11-29 19:34:51 +00:00
resize.php Media: Revert WebP generation. 2022-09-19 22:51:53 +00:00
resizeGd.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
resizeImagick.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
siteIcon.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
size.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00