• This plugin doesn’t seem to filter the image dimensions of SVGs correctly or completely.
    A division-by-zero bug is still happening even with this plugin enabled,
    see https://github.com/WordPress/gutenberg/issues/36603.
    At least return a non-zero fallback for SVGs for which the dimension can’t be determined,
    to prevent these unexpected division-by-zero errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor kubiq

    (@kubiq)

    Can you provide link to your SVG a write some steps how to replicate this issue?
    It works for thousands users and millions SVGs without any problem, so I’m really curious what is your issue

    Thread Starter strarsis

    (@strarsis)

    @kubiq: This is not the SVG but the Gutenberg editor and how it handles image dimensions.
    Use a SVG as site logo and then add a site logo block in the Gutenberg editor.
    On backend and frontend the division-by-zero error should then occur.

    Plugin Contributor kubiq

    (@kubiq)

    @strarsis so you’re talking about FSE editor? Because otherwise the Site logo block is not available or am I missing something?
    I just tried it on WP5.9RC3 and everything works and I can not see any error in debug.log or in console
    I would really like to help you, but I’m not able to replicate this issue

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter image dimensions of SVGs’ is closed to new replies.