Make WordPress Core


Ignore:
Timestamp:
11/11/2024 03:44:07 PM (3 weeks ago)
Author:
davidbaumwald
Message:

Media: Remove dimension suffix from full size converted HEIC images.

Removes the dimension suffix, eg -1000x1000 from the file name of full size images automatically converted from HEIC to JPEGs by WordPress. Introduces unit tests for the default conversion of images and customized conversion settings via the image_editor_output_format filter.

Follow up to [58849], [58942], [59317], [59346], [59366].

Reviewed by davidbaumwald.
Merges [59379] and [59380] to the 6.7 branch.

Props mukesh27, peterwilsoncc, azaozz, apermo, flixos90, ironprogrammer.
Fixes #62359.
See #53645, #62305.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

  • branches/6.7/tests/phpunit/tests/functions.php

    r58849 r59381  
    15651565
    15661566        $expected = array(
    1567             50,
    1568             50,
     1567            1180,
     1568            1180,
    15691569            IMAGETYPE_HEIC,
    1570             'width="50" height="50"',
     1570            'width="1180" height="1180"',
    15711571            'mime' => 'image/heic',
    15721572        );
Note: See TracChangeset for help on using the changeset viewer.