Support » Plugin: Swift Performance Lite » Inline small images does not work with SVGs

  • Hello.

    As the title says, the feature to inline small images doesn’t work with SVGs.
    The generated base64 data starts with “data:image/png”, which isn’t the right MIME type for SVG images.

    I backtracked the bug to modules/asset-manager/asset-manager.php in the function Swift_Performance_Asset_Manager::asset_manager_callback() at line 790, which considers any image with a path not ending in .jp(e)g to be a PNG – adding a check for SVGs would be good.

    Could you look into this ? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author swte

    (@swte)

    Thank you for reporting this issue, we are going to fix it in next update

    Thread Starter loicb71

    (@loicb71)

    Hello, thank you for answering. I’ll wait a bit before toggling this setting on websites using SVGs then.

    I’ll mark the thread as resolved when I notice the problem is fixed, but if I forget to, feel free to ping me back. Have a nice day !

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.