Thumbnail sizes are wrong
-
Dear author,
when a SVG file is uploaded, _wp_attachment_metadata key is created with sizes array. The problem with this array is, that the values are just equal to the breakpoints set in media settings.
For example: a SVG image with width 200px and height 20px which is correctly detected for the original size, has sizes array values of 150×150, 300×300, 768x and 1024×1024. This causes large problems with layout shifts.
IMHO the sizes should be copied from the original image dimensions.
Best regards,
Andrej
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Thumbnail sizes are wrong’ is closed to new replies.