News for hackers. Stuff that matters.
Re:A collection of SVG logos for developers by billyhoffman on Thursday July 02, 2015 @12:49AM (#9816892)
The site owner should seriously consider running these SVG images through "scour" because each image is roughly 2X the size it should be.

Since SVG images are using XML, they can be minified just like JS, CSS, or HTML documents. Scour is a python script that does just that, but is SVG aware so it removes unused XML attributes, etc. Like any lossless optimization, the resulting file is a pixel perfect copy (can you still say that for vector images?)

Does this really help. Yes actually. I'm getting over 800 KB of savings across all the images applying scour.

https://my.zoompf.com/s/165313?tid=im&srt=sev&asc=false&pgo=...

Re:A collection of SVG logos for developers by RobertKerans on Thursday July 02, 2015 @03:25AM (#9817330)
Depends, though - speaking from the perspective of a front-end developer/designer, it's almost universally preferable to have the non-minified versions of any image, and in this case, being able to easily work directly on the XML is a massive plus. Ideally they should be minified as part of a build step. A minified version for prototyping/rapid development would be handy though.
Re:A collection of SVG logos for developers by gilbarbara on Thursday July 02, 2015 @08:46AM (#9818444)
Yeah, that's the point. I think it's best to have the proper unminified version and do as you please
Re:A collection of SVG logos for developers by billyhoffman on Thursday July 02, 2015 @07:06AM (#9818094)
I completely agree. Keep original unminified versions of all of your resources, and do the optimizations as part of a build process, so your production visitors are getting the smaller version
Re:A collection of SVG logos for developers by jameshart on Thursday July 02, 2015 @10:15AM (#9818981)
Scour isn't 'lossless'. "Scour attempts to optimize the file, and as result, it will change the file's structure and (possibly) its semantics"

Scour can do things like change Ids, remove 'unused' data, and so on - but if you are planning on operating on the SVG using script, maybe you need those IDs or that data.

Re:A collection of SVG logos for developers by SunboX on Thursday July 02, 2015 @03:15AM (#9817290)
No no no! Plz do not shrink them! Every developer knows how to shrink SVG. But it's really hard to get nice readable SVG back from shrinked ones. Better this way...
Re:A collection of SVG logos for developers by ygra on Thursday July 02, 2015 @06:15AM (#9817916)
There isn't much you can do to SVG to hurt readability, actually. Scour mostly removes things such as superfluous IDs, superfluous elements in <defs> that are not used, shortens IDs, rewrites CSS into XML attributes where appropriate, removes attributes that replicate defaults, rewrites paths with a bit less whitespace and most importantly reduces the accuracy of numeric constants. The latter is in many cases the greatest reduction. And you don't notice the difference between 8 digits after the decimal point or 5 (unless the local viewBox is seriously fucked up).
Re:A collection of SVG logos for developers by wyldfire on Thursday July 02, 2015 @09:39AM (#9818736)
`xmllint --format` is probably pretty good at recovering readability.
Re:A collection of SVG logos for developers by personjerry on Wednesday July 01, 2015 @10:48PM (#9816587)
I think the name cuts your potential users. Some people would rather not risk nsfw and thus be wary if sent such a link.
Re:A collection of SVG logos for developers by talles on Wednesday July 01, 2015 @11:04PM (#9816629)
Ya, "SVG Porn" doesn't hint at all that porn is an innuendo.
Re:A collection of SVG logos for developers by TazeTSchnitzel on Thursday July 02, 2015 @01:40PM (#9820387)
Scalable vector erotica might be nice, but that's a different audience.
Re:A collection of SVG logos for developers by dav43 on Thursday July 02, 2015 @10:36PM (#9823085)
unfortunately it automatically gets filtered by corporate firewalls.
Re:A collection of SVG logos for developers by pacaro on Wednesday July 01, 2015 @11:26PM (#9816678)
Yeah, I had similar thoughts

svgcandy.com is available, which would convey much of the same idea

Re:A collection of SVG logos for developers by ObviousScience on Wednesday July 01, 2015 @11:40PM (#9816721)
I didn't click on the link before reading the comments... or even after, now that I'm here.

Turns out that momentary pause is a killer.

Re:A collection of SVG logos for developers by TazeTSchnitzel on Thursday July 02, 2015 @12:06AM (#9816788)
Some web filters will block any URL with "porn" in it.
Re:A collection of SVG logos for developers by Prometheus1981 on Thursday July 02, 2015 @12:06PM (#9819781)
Well, I know that I've been flagged by the IT system for going to a url with porn in the domain name :/
Re:A collection of SVG logos for developers by bbcbasic on Thursday July 02, 2015 @01:24AM (#9816999)
Or conversely, would be disappointed when clicking the link.
Re:A collection of SVG logos for developers by modarts on Thursday July 02, 2015 @01:47AM (#9817069)
The site's title font is awfully suggestive too
Re:A collection of SVG logos for developers by mytochar on Thursday July 02, 2015 @12:25AM (#9816838)
It's part of the new verbage of the internet. Similar examples include: https://www.reddit.com/r/earthporn
Re:A collection of SVG logos for developers by pimlottc on Thursday July 02, 2015 @01:06AM (#9816955)
Just because it's a trend doesn't mean it's a good trend...
Re:A collection of SVG logos for developers by TazeTSchnitzel on Thursday July 02, 2015 @12:06AM (#9816791)
Where are these from? Recreated by hand? Sourced from official sites where possible?

Shouldn't there be attribution?

Re:A collection of SVG logos for developers by gilbarbara on Thursday July 02, 2015 @08:47AM (#9818448)
I just added a copyright notice in the git repo.
Re:A collection of SVG logos for developers by TazeTSchnitzel on Thursday July 02, 2015 @01:38PM (#9820370)
Git repo? Where?

Don't link me it here, it should be on the site.

Re:A collection of SVG logos for developers by talles on Wednesday July 01, 2015 @11:07PM (#9816640)
These must be great to make stickers.

P.S.: I bet that most people never seem the JSON logo (http://svgporn.com/json.svg).

Re:A collection of SVG logos for developers by sigsergv on Thursday July 02, 2015 @12:27AM (#9816845)
Re:A collection of SVG logos for developers by nstart on Wednesday July 01, 2015 @10:35PM (#9816552)
I think the name is appropriate. These looked so good that I just did a rather sensuous sigh when I saw them.
Re:A collection of SVG logos for developers by gilbarbara on Thursday July 02, 2015 @08:48AM (#9818451)
my thoughts exactly! :)
Re:A collection of SVG logos for developers by moonchrome on Wednesday July 01, 2015 @10:48PM (#9816586)
I just realized Polymer logo : http://svgporn.com/polymer.svg reminds me of Visual Studio for some reason - I needed to hover over it to see it's not some VS version.
Re:A collection of SVG logos for developers by davidpelayo on Thursday July 02, 2015 @04:57AM (#9817611)
It would be also nice to have title-tooltips to show the product name, in case you don't know one of them
Re:A collection of SVG logos for developers by davidpelayo on Thursday July 02, 2015 @04:59AM (#9817621)
ok, it's already in place...! however in mobile browsers you can't see them
Re:A collection of SVG logos for developers by SunboX on Thursday July 02, 2015 @03:16AM (#9817296)
Plz add a option to download them all as ZIP file. :) Btw. nice work!
Re:A collection of SVG logos for developers by jakobegger on Thursday July 02, 2015 @03:18AM (#9817300)
You can use the "Download ZIP" button on the Github repo: https://github.com/gilbarbara/logos/
Re:A collection of SVG logos for developers by SunboX on Thursday July 02, 2015 @03:18AM (#9817304)
... or is it at github? That would serve my needs. ;)
Re:A collection of SVG logos for developers by SunboX on Thursday July 02, 2015 @03:19AM (#9817308)
same minute. Thanks! :)
Re:A collection of SVG logos for developers by seesomesense on Thursday July 02, 2015 @02:21AM (#9817168)
SVG pornography ? Is that some kind of NSFW fetish ?
Re:A collection of SVG logos for developers by gilbarbara on Thursday July 02, 2015 @08:48AM (#9818455)
It's a fetish, but it's safe for work!
Re:A collection of SVG logos for developers by dav43 on Thursday July 02, 2015 @10:37PM (#9823089)
it will filtered by most corporate firewalls, like mine.
[deleted]
Re:A collection of SVG logos for developers by TazeTSchnitzel on Thursday July 02, 2015 @12:09AM (#9816794)
I don't think any of these logos are usually animated, so why should they be here?
Re:A collection of SVG logos for developers by d2xdy2 on Wednesday July 01, 2015 @11:28PM (#9816687)
the Require.js logo has the hover title 'Redis'.
Re:A collection of SVG logos for developers by rpcope1 on Wednesday July 01, 2015 @11:38PM (#9816713)
Any possibility or getting Erlang and Scala logos?
Re:A collection of SVG logos for developers by alwillis on Thursday July 02, 2015 @01:38AM (#9817044)
Any reason why Facebook’s logo is missing?
Re:A collection of SVG logos for developers by jader201 on Thursday July 02, 2015 @01:52AM (#9817084)
These logos appear to relate specifically to development tools & libraries. Facebook is a tech product, but not typically considered a development tool/library. Similarly, you don't see Twitter, G+, Reddit, Instagram, etc. logos.
Re:A collection of SVG logos for developers by gilbarbara on Thursday July 02, 2015 @10:31PM (#9823070)
11 new logos added tonight!