Resizing question

Post questions on how to use or achieve an effect in Inkscape.
Amadeus12
Posts: 66
Joined: Sat Sep 11, 2010 4:20 pm

Resizing question

Postby Amadeus12 » Mon Dec 29, 2014 3:36 am

I want to resize a file with a size of 3,5 MB.

I want to do that with a text-editor. When I do that, I encounter problems. I make the canvas smaller but not the elements of the image.

My question: How to resize an image with a text-editor the right way.

This is the file: https://commons.wikimedia.org/wiki/File:Kansas_in_United_States.svg

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Resizing question

Postby Lazur » Mon Dec 29, 2014 4:44 am

If you want to use an svg for the final product, maybe edit in some viewport and viewbox into the codes.

http://www.w3.org/TR/SVG/coords.html

http://tavmjong.free.fr/SVG/VIEWPORT/viewport.html

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Resizing question

Postby tylerdurden » Mon Dec 29, 2014 6:10 am

FWIW, it doesn't take long to open and modify the file in Inkscape.

(About 30% of the file size is due to Illustrator data.)
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Amadeus12
Posts: 66
Joined: Sat Sep 11, 2010 4:20 pm

Re: Resizing question

Postby Amadeus12 » Mon Dec 29, 2014 2:06 pm

That is right, tylerdurden. Removing the Inkscape-code reduces the file to 2,2 MB.

But even then, opening a file of that size means that my computer goes beserk. I have a 486 with 2 Gig of Ram with Linux on it. That is enough to do most work with Inkscape. But again, not with a file of that size.

To edit the viewport or the viewbox won't reduce the size of the file and that is my goal.

So, the question remains: is it possible to reduce the size with a text-editor?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Resizing question

Postby Lazur » Mon Dec 29, 2014 9:06 pm

My bad, thought you wanted to change the size displayed.
Changing it to other measures won't affect the file size as this is a vector format.
No, I don't think it could effectively shrunken by a text editor more.

Now that I downloaded the svg, it is 2,3 MB, possibly got updated?
Anyway.
Thing that can make it look unsafe in inkscape is the high node number of the paths. (There are some with 30000+ nodes.)
Breaking them apart and combining could make it better (via inkscape), but some of those could be problematic -namely the one representing the lakes with islands.

There are alot of nodes that could be deleted manually. Will the final format need such a detailed design?
(Auto-simplifying may work.)

Amadeus12
Posts: 66
Joined: Sat Sep 11, 2010 4:20 pm

Re: Resizing question

Postby Amadeus12 » Mon Dec 29, 2014 9:17 pm

Yes, I did away with the Adobe Illustrator code on Wikimedia Commons.

Resizing within the text editor can be done with the scale command. I found it here:
http://tutorials.jenkov.com/svg/svg-tra ... html#scale

But that won't resize the file in bytes.

What I was late to realize is that this map is not the normal USA map that is often used on Wikimedia Commons. The lakes make the map heavier than other, similar maps.

So, all in all, this was a good exercise. Thank you for answering, both of you.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Resizing question

Postby v1nce » Mon Dec 29, 2014 10:45 pm

scale won't change the level of detail (=the size) of the map.

Probably the file is too much detailed for its need.
The coast is highly detailed but the size of the stroke is so that the details overlap (even if you zoom x10)

Maybe start with a simpler file
http://upload.wikimedia.org/wikipedia/c ... _names.svg


Return to “Help with using Inkscape”