SVG file size after saving only one layer

General discussions about Inkscape.
mauroc87
Posts: 1
Joined: Sat Jan 18, 2014 8:29 pm

SVG file size after saving only one layer

Postby mauroc87 » Sat Jan 18, 2014 8:36 pm

Hello everybody. I'm new here, so maybe it's obvious but I need some help.

I made a SVG with many layers. Now I want to save each layer as a new SVG-file. Seemed pretty easy by toggeling the visibility and saving as "plain svg". What I don't understand is: all the new files are the same filesize despite having very different content. The files seem to be WAY to big (all of them are almost the same size like the original file).
Probably Inkscape saves a lot of information about the hidden layers I don't even need (and they are not even visible if I open the new file in Inkscape).

Is there a way to get rid of the useless information? How can I save only the information I want?

Thanks in advance and greetings from Switzerland

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

Re: SVG file size after saving only one layer

Postby Lazur » Sun May 04, 2014 1:39 am

Hello there,

sorry for the belated answer.
Try the vacuum defs under file menu.

User avatar
Pilosopong Tasyo
Posts: 7
Joined: Tue Nov 20, 2012 1:09 pm
Location: /dev/null

Re: SVG file size after saving only one layer

Postby Pilosopong Tasyo » Mon May 05, 2014 3:15 pm

Off topic:
Lazur URH wrote:...sorry for the belated answer...

It's not a belated answer. I posted a reply addressing the OP's issue months ago, before the irresponsible incident that caused all my posts to be purged in this forum. I don't think the admin has the time of day to restore from backup, if one ever existed.
Wrongfully banned in March 2014. All my posts prior to this date were unceremoniously removed. I was told there was supposed to be in a backup somewhere. Still waiting for my old posts to be restored (more likely it's hello bit bucket).

(ノಠ益ಠ)ノ彡┻━┻

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: SVG file size after saving only one layer

Postby ragstian » Mon May 05, 2014 3:32 pm

Hi.

Can we have some more details about the 'incident'?
I have read all your answers over the time and found them to be very valuable.
A shame to have all that work go 'down the drain'!

Any chance of our posts sharing the same fate as yours?

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: SVG file size after saving only one layer

Postby brynn » Mon May 05, 2014 7:01 pm

Off topic:
Apparently PT had been accidentally banned, through a process which phpBB Forums call "one-click ban". Normally, after banning someone, a mod or admin would have to search out and delete all their messages, in 2 separate steps or processes. But "one-click ban" does it all at once. It's really convenient for mods and admins, except when it's done mistakently. And I should say, that's my understanding of how it works....at least that's the general idea.

Anyway, the messages could be restored (from backups of the forum), but it will take a little time, and which we all know, microUgly apparently doesn't have much time to admin. Afaiu, that's why we see so much spam. I seriously doubt all of PTs messages will ever be restored. Initially I had hoped at least the last couple of months' worth might be restored. But it's been some months since it happened, and I don't think any have been restored. I've come across several topics which obviously have missing messages. I would assume there are backups, but don't really know for sure.

I've held back from saying the following, over the last few months.....and still hesitate....but I don't think most members really grasp the situation, and maybe this will help. It never took me more than 5 to 10 minutes daily, on average, to approve new messages and ban spammers. I spent a whole lot more time in the forum than that, because I like to read and answer messages. But the bare responsibility of approving new messages and banning spammers, takes very little time.

And it's just a shame really, because PT had been an active member of this forum, for a few years. (I would guess his posts probably numbered over 400.) I would like to say that it's unlikely to happen again. But.....accidents happen, as they say. I have no idea exactly how micro was accessing the one-click ban, so I couldn't begin to guess how it happened. It could have been he clicked accidentally, or maybe clicked the wrong thing? I'm sure we all can relate to that. So maybe it wouldn't have mattered anyway. But I have to wonder if he were more familiar with member names, if he might have hesitated just long enough to avoid it. And I wonder if he doesn't realize how active PT had been, and how many topics are affected.

User avatar
Pilosopong Tasyo
Posts: 7
Joined: Tue Nov 20, 2012 1:09 pm
Location: /dev/null

Re: SVG file size after saving only one layer

Postby Pilosopong Tasyo » Mon May 05, 2014 8:25 pm

Off topic:
Hi brynn,

Thanks for the additional info. I was on and off the computer while composing this reply. Only noticed you already posted before I hit the Submit button.

Hi Ragnar,

ragstian wrote:Can we have some more details about the 'incident'?

According to the e-mail exchange I had with the admin, I was banned 'by mistake' and the admin had "no recollection" [sic] of how the mistake was made. The admin also mentioned, "There were quite a few spam posts around the time." [sic]

My account got reinstated quickly. But, as far as my posts were concerned, they're either in a backup somewhere in limbo or they're already in the bit bucket. Most likely, it's the latter.

I found out about this 'accidental ban' the first time when I visited the forum on March 11. It's almost two months since then and this issue has yet to be fully rectified, if ever.

ragstian wrote:I have read all your answers over the time and found them to be very valuable. A shame to have all that work go 'down the drain'!

Thank you for the compliment. It really is a shame. As we say in the Philippines, "nakakapanghinayang." My concern here is the threads that I posted in will not make any whole lot of sense for would-be readers. Take for instance, this thread, this one, and this one. And, just like what happened to *this* thread and another one, it would appear that the thread wasn't answered, when the fact is, it was before.

You'll find plenty more examples here.

ragstian wrote:Any chance of our posts sharing the same fate as yours?

It happened to me; it can happen to anyone. All it takes is one careless mistake. Adding insult to injury is the apparent lack of action to rectify this mistake from the concerned party.

Sorry to say this, but right now, I lost the gusto in contributing to this forum.

Regards,

PT
Wrongfully banned in March 2014. All my posts prior to this date were unceremoniously removed. I was told there was supposed to be in a backup somewhere. Still waiting for my old posts to be restored (more likely it's hello bit bucket).

(ノಠ益ಠ)ノ彡┻━┻

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

off topic

Postby Lazur » Tue May 06, 2014 4:00 am

The spam being here lately is the result of a season break?
http://www.inkscapeforum.com/viewtopic.php?f=27&t=17299

On the other hand, when spam gets deleted, the answers still remain.
So now we have some topics "unanswered", like:
http://www.inkscapeforum.com/viewtopic.php?f=5&t=17311
and
http://www.inkscapeforum.com/viewtopic.php?f=30&t=17292.

Before my accounts get deleted -if ever- the top poster's list I sent here at Aug 03, 2013:
http://www.inkscapeforum.com/viewtopic.php?f=30&t=15804#p58735
At the time, Pilosopong Tasyo had between 186 and 215 posts, so about 250 posts got deleted?
Hope they will be back someday.

trlkly
Posts: 2
Joined: Sat May 03, 2014 12:17 am

Now back to the question being asked

Postby trlkly » Sat May 10, 2014 5:49 pm

Hiding a layer doesn't remove it from the file. It only makes it invisible. You have to delete a layer to get rid of it entirely. So the way you could save each layer separately would be to Save a Copy of the full file first, then delete all layers except one, vacuum defs, and then Save As. Then undo (Ctrl-Z) to get all your layers back, then repeat the delete-vacuum-save process for each layer.

However, since you already have separate files for each layer, it might be easier to open each of them, delete the hidden layers in each of them, vacuum defs, and then Save.

(You don't absolutely have to vacuum defs, but it can help make the files smaller.)

Offtopic: And, yes, this is here just in case the posts don't get restored. I want people to be able to find the answer if they search the forums.


Return to “General Discussions”