Comment 25 for bug 180612

Revision history for this message
rickmastfan67 (rickmastfan67) wrote :

I've just found a work around, but you need to have GIMP installed as well to make use of this. Still would be easier to be able to do it all inside of Inkscape on the export screen for png files..

1. Open your *.svg file in a text editor.
2. Find the first object in your file that has style info for an object and add this line either above or below it (doesn't matter where, just has to be in the object and don't forget to hit enter after you paste it into your file): shape-rendering="crispEdges"
3. Continue doing step 2 till you have added that line to all the items in your svg file.
4. Save your file.
5. Import your now modified svg file into GIMP.
6. Select the size you want on the import screen.
7. Now, export your file as whatever format (*.png, *.bmp as examples) from inside of GIMP.

What happens:
You now have a non anti-aliased image file in either *.png or *.bmp format!

Doing this might take awhile if you have several items in your file, but if you really need the anti-aliased completely gone, this is the only way to do so till Inkscape can do it itself!

Also, one note, if you have text in your file, you'll need to convert it to a path first, otherwise this will not work on the text (will work on everything else). Also, this even works on filters, well, at least the blur for sure. ;)