[wp-trac] [WordPress Trac] #52867: Add capability to set default format for image sub-sizes.

WordPress Trac noreply at wordpress.org
Tue May 4 20:53:07 UTC 2021


#52867: Add capability to set default format for image sub-sizes.
-----------------------------------------------------+---------------------
 Reporter:  adamsilverstein                          |       Owner:  (none)
     Type:  enhancement                              |      Status:  new
 Priority:  normal                                   |   Milestone:  5.8
Component:  Media                                    |     Version:
 Severity:  normal                                   |  Resolution:
 Keywords:  has-patch dev-feedback needs-unit-tests  |     Focuses:
-----------------------------------------------------+---------------------

Comment (by adamsilverstein):

 This filter should be ready and could use some testing!

 ### Testing instructions

 * Apply the patch from the ticket (`grunt patch:52867`).
 * Install the WordPress modern images plugin from
 https://github.com/adamsilverstein/wordpress-modern-images (download zip
 from the green button, or clone into plugins folder).
 * Test uploading images in a post and view the front end source code,
 check the uploads folder to see what happens!

 ### Some testing scenarios and what to expect:
 * Upload a jpeg image, by default the output format will now be WebP.
 Check the source code and images sub-sizes generated in uploads to verify.
 * Test on a system with GD that doesn't support WebP, images should be
 jpegs.
 * Test with Imagick with and without WebP support expecting similar
 behavior.
 * If your system supports AVIF, try outputting in AVIF - turn on under
 Settings->Media.

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


More information about the wp-trac mailing list