Remix of Only Wine 158

by JayNick - uploaded on August 26, 2017, 5:39 pm

Remix of Only Wine 158 - https://openclipart.org/detail/285560/only-wine-158

Reduced file size from 2673KB to 88KB by

eliminating unused gradient and filter definitions

eliminating unused style definitions

applying transformations to the path statements

reducing path commands to 2 decimal places

cleaning up style attributes

Log in to add this clipart to a collection.

Tags
alcohol bordeaux wine
Safe for Work?
Yes
Download SVG

Comments

Original file has unused filter and gradient definitions that make up the bulk of the file size. It also had many style definitions at the end of the file that are unused. Any inkscape users know how to prevent these definitions from being exported? Did not look at other files, but suspect the same thing as the file sizes are similar.

What I do is copy what I wish to keep to a new file and save that. So then I have a working file I can go back to and a completed one without the mess. I also do the same to clean up something I worked on by copying only what I want to keep and then saving the copy as the original, overwriting the earlier version.
For example, I might import a set of gradients and use one or more, then copy the new work to a file that I save over the version with the imported gradients, keeping only the gradients used..

You're good. As you can see, I'm not able to use Inkscape so well. I copied and pasted a clipart and the error repeated.

@JayNick Can you explain me how to do my work with excess gradients? Thanks.

@OnlyWine I am not familiar enough with inkscape to tell you how to manage the excess gradients. I just wanted to identify why the files were so large. Your recent uploads are much smaller, so it appears to me you figured it out. Perhaps some inkscape users can better address this issue. @pjsvbfcm commented. Anyone else?

Maybe I understand ... gradients and radials are wrong in the tags but I can only delete them with a text editor. I can not use Inkscape.

@Only Wine - have you tried Save As / Plain SVG? By default Inkscape saves as Inkscape SVG, which includes its own private extensions. Lots of them! That should never be uploaded. Only Plain SVG, or better yet Optimized SVG should be uploaded to web sites (not just this one).

Tried, but errors are fixed in XML tags
I reduce the weight from a 2Mb to 20Kb factor this way:
In Inkscape Shift + Ctrl + X
Port down on XML code tags
I open the file with a text editor and delete everything after the tag
Thank you sincerely.

Log in to comment.