wordpress-develop/tests/phpunit/tests/image
Mike Schroder 35e6dbe14f Media: Add support for rendering PDF thumbnails.
When support for PDFs is available, on upload,
render 'Thumbnail', 'Medium', 'Large', and 'Full' sizes of
the first page, and save them in attachment meta.

Use these renders within Add Media, Media Gallery and List views,
Attachment Details, Post/Attachment Edit screens, and Attachment pages.

Support available by default via Imagick -> ImageMagick -> Ghostscript,
but can be provided by any `WP_Image_Editor` that supports PDFs.

Props adamsilverstein, azaozz, celloexpressions, desrosj, dglingren, ericlewis, ipstenu, joemcgill, joyously, markoheijnen, melchoyce, mikeschroder, tomauger.
Fixes #31050.

git-svn-id: https://develop.svn.wordpress.org/trunk@38949 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-26 07:27:51 +00:00
..
base.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
dimensions.php Fix edge-case in media cropping where selection and destination are the same size. 2014-11-30 06:26:26 +00:00
editor_gd.php Better image-type support checks in image unit tests. 2015-02-22 21:06:36 +00:00
editor_imagick.php Media: Fix typo in test_image_preserves_alpha_on_rotate(). 2016-03-15 03:50:40 +00:00
editor.php Media: Update unit tests after change to default image quality. 2016-02-22 23:13:27 +00:00
functions.php Media: Add support for rendering PDF thumbnails. 2016-10-26 07:27:51 +00:00
header.php Unit Tests: consolidate the many separate implementations of _make_attachment() into a helper method on WP_UnitTestCase. 2015-10-21 01:58:52 +00:00
intermediate_size.php Media: Prevent image_get_intermediate_size() from returning cropped images. 2016-07-18 02:13:45 +00:00
meta.php Build/Test Tools: Revert [38759]. PHPUnit's @requires syntax was introduced in PHPUnit 3.7, but the tests for PHP 5.2 use PHPUnit 3.6 because it's the latest version that supports PHP 5.2. 2016-10-08 22:42:12 +00:00
resize_gd.php Move GD-specific resize test to GD-specific resize test file. 2015-01-21 18:27:44 +00:00
resize_imagick.php Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
resize.php Media/Unit Tests: ensure that the GD absrtraction is used for GD unit tests for Images. Some of the procedural GD API functions can still throw ImagickException, which is fun. 2016-04-29 16:15:37 +00:00
site_icon.php Site Icon: There is no good reason for class-wp-site-icon.php to drop a global instance of itself whenever the file is loaded. The lone use of the global instance of WP_Site_Icon is in an AJAX action that provides virtually no way to override - the file is loaded immediately before the global is used. 2016-08-25 19:08:38 +00:00
size.php Use round() instead of floor() when resizing image dimensions. 2014-11-30 19:53:18 +00:00