this post was submitted on 22 Mar 2025
112 points (76.4% liked)

Linux

52350 readers
1051 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

what the heck!! that is so wild, mind blowing, i thought the main difference between raster graphics and vector graphics was the quality but i didn't think about it too deeply.

i had no idea svg files actually used html code and pretty much could be modified using only text and amazing code woa!!! this opens up the possibility for so many things on linux i think.

for example, on a linux distro, we could modify the desktop environment and make it waaaaay lighter by getting rid of jpg or png icons and just using pure svg on it.

svg can be given a lot of attributes like movement, mouse hovering, change color, change anything. and most svg files are still under a megabyte. wow.. please let me know other fun facts about svg or eps files. i really like doing graphic design on linux and inkscape.

(page 2) 9 comments
sorted by: hot top controversial new old
[–] [email protected] 31 points 3 days ago* (last edited 3 days ago) (1 children)

Another interesting part is that HTML5 supports embedding SVG. That is, you can put SVG code directly in your HTML5 document and it’s going to render correctly. You can also style it through your website’s CSS file and manipulate the elements via JavaScript.

Though as others pointed out, it’s technically not HTML but XML. For example, you have to close all the elements and quote all the attribute values. But when you embed it inside a HTML document, those rules get relaxed to adhere with HTML. (I.e., you cannot write <circle r=5> in SVG (it must be <circle r="5" />) but you can when you embed it in HTML).

[–] [email protected] 10 points 3 days ago (5 children)

woww that is crazy, thanks, does that mean that instead of using exported pngs, i can just use the svg code on html and it'll be a much lighter file??

load more comments (5 replies)
[–] [email protected] 77 points 3 days ago* (last edited 3 days ago) (3 children)

More precisely, both are flavors of XML.

[–] [email protected] 45 points 3 days ago (2 children)

technically HTML is not XML.. XHTML is, but HTML can be invalid XML.

[–] [email protected] 13 points 3 days ago

Ok—to the extent that SVG is HTML, the variant of HTML that it is is a flavor of XML.

load more comments (1 replies)
[–] [email protected] 17 points 3 days ago (1 children)

HTML predates XML by several years.

[–] [email protected] 14 points 3 days ago (3 children)

Age doesn't matter. XML is a super-set of XHTML's spec.

That is - all XHTML is valid XML but not all XML is valid XHTML.

Note I'm saying XHTML not HTML since the later need not be valid XML.

load more comments (2 replies)
[–] [email protected] 9 points 3 days ago

...which is derived from SGML.

load more comments
view more: ‹ prev next ›