


Or maybe if the image has something in it which you don't want, you could just delete it. Although that will change the appearance of the image. Can you share a couple of different files for us to test with? You can just attach them to your next reply.īesides optimization, if the image has filters in it, for example, that could be swapped out with a flat fill, and make it smaller. But it can't hurt to try.īut anyway, they would have to be considered on a case by case basis. I don't know if the website where you want to upload them would accept them. So it's possible that saving them as Optimized SVG would make them smaller. There is something called "optimization" for SVG files. However, it certainly can't hurt to look at them anyway. But I'd say that generally, you won't be able to make them smaller. In some cases, possibly some contents can be removed or replaced to make them smaller. Usually files that you find on the internet have already been made as small as possible. In the past I've used its svg files directly in web pages.For the 2 files which you've showed me, there's probably no way to make them smaller. I'm not an svg expert so I'm not sure if there are some specific things inkscape does, but I've always found it very web compliant. Give the wrapper blank background/border if it shouldn't be visible.Īnd with this command (I'm on a mac, so translate specific OS as needed) I could control the size/position of the output png: /Applications/Inkscape.app/Contents/Resources/bin/inkscape -f test.svg -e out.png -i wrapper One way that might help is to draw an area you want as a container, give it an id, and export that with the -i id option. How can I use inkscape to export without the magic number 1052 that defines the page height? Correct Answer I was able to use inkscape at the command-line: c:\app\inkscape\portable\App\Inkscape\ -f s3.svg -e s3.png -export-background=white -export-area=0:652:400:1052īut SVG coordinates (0,0) are defined at the upper left whereas in inkscape's export the export area is (0,0) defined at the lower left. I tried using imagemagick but it seems to have a bug when used with rotate transforms, e.g. I need to convert svg to png at the command-line.
