Use Svg instead of png

Hello, for increasing the kb's I was trying to use SVG instead of png for our logo.

I thought I use the logo on all of our ads, so by using SVG I would be saving kb's

when I export of a trying with a png init, the zip is 61kb
when I make the same with a svg code import in Hype, I get a zip of 74kb

I thought with a svg instead of png, the zip would be smaller...sad enough it isn't

realsvgtry.zip (72.6 KB)
svgtryp.zip (59.8 KB)

You can compress your SVG a bit further to reduce its size by running it through: https://svgomg.net/

image.svg.zip (33.2 KB)

1 Like

Assuming it’s not coded in the html as in the example… or does the compression get rid of repetitive code.?

;-(
kb's are the same 73kb
real2svgtry.zip (71.4 KB)

It seems like a PNG might be your best bet here since the SVG shape is quite complex. If your SVG was more optimized and had fewer shapes it might be smaller than PNG, but PNGs are already a very optimized file format.

This PNG is down to 10kb:

seats30jaar_222p-10kb

SVGomg does some nice improvements like converting numbers like 1.999999 to 1.99 to save a few digits. For some SVGs it can squish it down a lot. I believe its now baked into Imageoptim.

oke thanks, fair enough, I stick to the png workflow