BG
Vortex
by JayNick - uploaded on May 5, 2016, 12:18 am
Rework of Abstract Vortex 7 by GDJ
openclipart.org/detail/247958/abstract-vortex-7
The original file is over 11 MB
This file is less 30 KB - less than 0.3% of original file size
Remixes 2
Want to remix this clipart?
- Download the SVG
- Edit it in your favourite SVG editor
- Upload with Upload Remix (links automatically)
Sources
No catalog sources linked yet.
I found this clipart!
Related Finds — Openclipart spotted in the wild. Browse all · Atom
No Finds yet.
Log in to post a Found.
Comments
@GDJ
2016-05-23 04:59:41+00Great job on the size reduction... how'd you accomplish it?
@AdamStanislav
2016-05-25 03:31:05+00Hello, GDJ. I was waiting for JayNick to answer your question, but finally decided to answer it myself. The graphic consists of one graphic element that is displayed repeatedly around the circle and at different sizes. The difference between the original and the remix is that the original (I mean the SVG source code) spells it out repeatedly, always with different numeric values, but the remix defines it once (using the defs element of SVG), then repeatedly posts a reference to that definition along with the necessary translation, rotation and scaling (using the use element of SVG). This accomplishes the same result as the original but saves a lot of space (while forcing the SVG host to recalculate all the numeric values every time it displays the graphic).
Essentially it trades off rendering time for storage space. It happens so fast that we humans don’t even notice that it takes somewhat longer to render, so it’s a good tradeoff.
@GDJ
2016-05-25 04:11:36+00Oh so using clones. That requires hand coding after the fact, right? I didn't make this in inkscape.
@GDJ
2016-05-25 04:12:11+00Thank you for the very detailed response, as always.
@GDJ
2016-05-25 04:13:21+00How easy would it be for someone to learn to do this? I've got a few other files I'd like to shrink...
@AdamStanislav
2016-05-25 14:49:15+00How easy? That depends on how easy you consider programming. I think it’s easy, but then I have been computing since 1965 and compared to that everything done with computers today is easy. :)
Jay Nick (the person behind this remix) has a wonderful web site at STEAMcoded.org specifically for the people who want to learn how to code SVG by hand. Also http://taye.me/blog/svg/a-guide-to-svg-use-elements/ explains how the SVG use element works.
@GDJ
2016-05-25 15:59:35+00I don't need to know it all... just enough for edge cases like these.
@AdamStanislav
2016-05-25 18:19:43+00I realize that. Jay’s site has easy tutorials for all these little tricks. And the other one explains the “use” element specifically, what it does and how to use it. Between the two of them, you can learn what you need to know for these edge cases without learning everything about the internal workings of SVG.
Then you’ll be able to see what Jay did to your original and use it for any other graphic of this type.
Remember, SVG is a markup language (like HTML), not a programming language. Markup languages are much easier to learn than programming languages.
@GDJ
2016-05-25 21:49:39+00Informative, thank you.
@JayNick
2016-05-26 04:03:11+00Sorry I'm late to the party - been very busy.
Create a symbol and give it an id attribute, then a use element can duplicate the SVG symbol when referenced with an xlink:href attribute. Note the xlink:href attribute references a predefined id when preceded with a # character.
Of course the ultimate SVG reference is the W3C specification. Here is the definition of the element http://www.w3.org/TR/SVG/struct.html#UseElement
A good example to view the source of is http://www.w3.org/Icons/SVG/svg-logo.svg
Not sure I agree that re-using symbols take more processing time. Rescaling is done every time the window is resized so the browser software routines to do that are highly optimized. I believe it to be much faster than redrawing each path definition in the original code. Just my thoughts - can't say for sure.
Log in to comment.