[wp-trac] [WordPress Trac] #62305: Original HEIC image is not converted to JPEG

WordPress Trac noreply at wordpress.org
Tue Nov 5 20:15:58 UTC 2024


#62305: Original HEIC image is not converted to JPEG
-----------------------------------+-----------------------
 Reporter:  azaozz                 |       Owner:  azaozz
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  6.7
Component:  Media                  |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch fixed-major  |     Focuses:
-----------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:27 mukesh27]:
 > The [59317] changes caused a unit test error for the Modern Format Image
 plugin.

 @mukesh27 Thanks for the ping about this!

 May be missing something but seems all failing tests there are "negative".
 I.e. they are to confirm that the originally uploaded image in not
 converted to the expected format (when smaller than the big image
 threshold), and only the sub-sizes are converted?

 I.e. these tests confirm that when uploading an 1080x720px JPEG image, and
 the WP_Image_Editor is set to convert JPEG to WEBP, the original image
 remains JPEG but all sub-sizes are WEBP. This comment on one of the
 failing tests seems to explain it:
 https://github.com/WordPress/performance/blob/trunk/plugins/webp-
 uploads/tests/test-load.php#L56.

 If that's the case, thinking these tests can be fixed to reflect that this
 bug in core is now fixed.

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


More information about the wp-trac mailing list