Support » Requests and Feedback » Support for SVGZ images in Media Library

  • WordPress generates IMG tag without width/height attributes for *.svgz images (tested both in Theme Twenty Twenty-Four and in production Theme Avada).

    SVG was allowed at the website couple years ago, so I don’t remember how it exactly was allowed.

    Today I’ve tried with newly installed and activated plugin but it currently also doesn’t handle SVGZ as I need ( )

    The SVG image has 29kB while SVGZ has 10kB. It seems to me innefficient to configure server to compress SVG on every request, if already compressed CVGZ could be uploaded into Media Library.

    Please, could you allow and fully support SVGZ images directly in WordPress Media Library (without the need to use any plugin or theme customization)?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter jan.mazanek


    @sajjadakbari thank you.

    We will use “Solution 2” (compress SVG on webserver, with this overhead, which IMHO wouldn’t be bigger than determining the dimensions on PHP via Plugin or own code).

    IMHO the best would be to have this implemented in WordPress and retrieve width/height from metadata in once with other image metadata (without the need to read and process SVGZ file on every request).

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