• Resolved Andrej Mernik

    (@r33d3m33r)


    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)
  • Plugin Author Benbodhi

    (@benbodhi)

    Thank you for using my plugin and pointing this out.

    This is on my radar and I plan to implement something to try and use the SVG dimensions as default.

    Plugin Author Benbodhi

    (@benbodhi)

    Thanks for your patience!

    This has been included in version 2.4.

    (2.4 is available from trunk right now, but will be pushed as a normal update in the next few hours).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnail sizes are wrong’ is closed to new replies.