• jan.mazanek

    (@janmazanek)


    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 https://www.ads-software.com/plugins/safe-svg/ but it currently also doesn’t handle SVGZ as I need ( https://www.ads-software.com/support/topic/ability-to-retrieve-dimensions-not-only-from-svg-but-also-from-svgz/ )

    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

    (@janmazanek)

    @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)
  • The topic ‘Support for SVGZ images in Media Library’ is closed to new replies.