Questions tagged [svgz]

SVGZ is the standard way to refer to an SVG image that has been compressed using the Gzip compression algorithm.

15 questions
41
votes
3 answers

SVGZ file format

I'm working in SVG and just read about the compressed file 'SVGZ' format. As it makes our file sizes a lot smaller, I'm quite keen on using it in our web application, however the browsers do not appear to support the format. Can anyone point to any…
Zain
  • 5,391
  • 11
  • 34
  • 34
18
votes
2 answers

Compress SVG or Convert SVG to SVGz

Is there a way to compress SVG files? I've been told that SVGz is the best way although I haven't found a converter to convert my SVG file. Or is there an app where I can import an SVG file and export to SVGz?
user1658756
  • 1,014
  • 5
  • 13
  • 27
4
votes
4 answers

Easiest way to embed SVG/SVGZ Vector Graphics in HTML website (for all major 2016 browsers)

What is the easiest way to embed vector SVG or compresed SVGZ illustrations in a website? It must work correctly under 2016 versions of Firefox, Chrome, Opera and Safari and Internet Explorer.
Sam
  • 15,254
  • 25
  • 90
  • 145
4
votes
1 answer

SVGZ doesn't display

SVGZ format only works when I test it on local on Google Chrome. (doesn't work on other browers) It worked fine with svg though. Otherwise, on server, it doesn't work. I tried to add a .htaccess file with the lines AddType image/svg+xml svg AddType…
Naemy
  • 446
  • 2
  • 5
  • 17
3
votes
3 answers

using svgz in html server

I use chrome to visualize a svg file which I put on a server, that works fine. Here's the dead simple html for it: svg However, when I try to use svgz instead, it doesn't work. Here's the code I use:
anon
2
votes
3 answers

How to decompress SVGZ with JavaScript?

I'm trying to set up this world map using SVGZ instead of SVG so I can give my users a richer, more detailed map. So far I've tried decompressing it using js-deflate, but to no avail.
Badgeman 3000
  • 81
  • 1
  • 9
2
votes
2 answers

How to save as SVGZ with external stylesheets in Illustrator

I am trying to embed an external stylesheet in an svgz file. I can embed it just fine into the svg file but it seems to be stripped out when I save as svgz. Any help would be appreciated here is the code from the svg file:
Zanderi
  • 907
  • 9
  • 15
1
vote
1 answer

how to create compressed scalable vector graphics including metadata from within matplotlib

matplotlib allows generation of svgz files, compression rate mor than 90% external compression of svg files with gzip -9 worse to extremely worse xml.etree.ElementTree allows definition of metadata to svg dataset, but export apparently only to…
D.M.
  • 11
  • 2
1
vote
1 answer

SVGZ files not served from Pyramid static view

I've been replacing SVG images on my web site with SVGZ files, but I'm having trouble getting Pyramid to serve them from a static_url. __init.py__ has: config.add_static_view(name='static', path='app:static', cache_max_age=3600) and the template…
cswingle
  • 76
  • 1
  • 6
1
vote
1 answer

Cannot open SVGZ File in Firefox, Safari, IE

I have a SVGZ file which will not open in Firefox, Safari and IE. Does anyone know why the SVGZ file won't open in any of those browsers?
user3790176
  • 42
  • 1
  • 9
1
vote
0 answers

SVGZ (compressed SVG) does not work with ePub readers

I was trying to embed compressed SVG file (.SVGZ) to xhtml file of epub like this ,when i tested it on various readers,the result was blank space instead…
m4c_4rthur
  • 53
  • 7
0
votes
2 answers

Golang Static files (SVGZ)

Im trying to serve static .svgz files (compressed SVG) with the below script: http.ListenAndServe(":9090", http.FileServer(http.Dir("/srv/www/htdocs/"))) im getting the below error: This page contains the following errors: error on line 1 at…
aissa
  • 13
  • 6
0
votes
0 answers

Setup IIS 7.5 to render svgz files in browsers

I have IIS 7.5 server on Windows 7. On a particular web page there is a SVG element. On this SVG element, there is an image element: I have configured: mime type:…
George I.
  • 560
  • 2
  • 7
  • 26
0
votes
1 answer

svg and svgz doesn't display after adding remove the trailing slash in .htaccess

Here is my .htaccess file AddType image/svg+xml svg svgz AddEncoding gzip svgz Options +FollowSymlinks -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} /(.*[^/]+)/$…
olo
  • 5,225
  • 15
  • 52
  • 92
0
votes
2 answers

Qt how to render Svgz to QImage?

i used following code to display the Svgz image How to render a scaled SVG to a QImage? My code: QRect sSize=QApplication::desktop()->screenGeometry(); m_targetImage = QImage(sSize.width(),sSize.height(),QImage::Format_ARGB32); ... QSvgRenderer *re…
Saravanan
  • 131
  • 2
  • 13