[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why doesn't 4chan support SVG yet?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 78
Thread images: 14
File: Bitmap_VS_SVG.svg.png (99 KB, 1280x818) Image search: [Google]
Bitmap_VS_SVG.svg.png
99 KB, 1280x818
Why doesn't 4chan support SVG yet?
>>
Because your a fucking idiot.
>>
File: images (2).jpg (6 KB, 189x267) Image search: [Google]
images (2).jpg
6 KB, 189x267
Because eggplant.
>>
Because reasons
>>
>>54677899

because Windows 10 can't natively support .svg

i can only open them in internet explorer which i will not do
>>
>>54677899
I still don't understand the difference.
>>
>>54678606
raster is comprised of a 2D grid of pixels, vector is comprised of lines and curves
>>
dude exploits lmao
https://security.stackexchange.com/questions/11384/exploits-or-other-security-risks-with-svg-upload
>>
>>54678648
Still don't get it.

Lines and curves of what? Why?
>>
i imagine they don't want to spend the cpu time rendering arbitrary svg's for thumbnailing
>>
>>54677899

Because we have png.
It's good enough for posting memes and anime girls.
That being said, .svg would be great for /gd/.
>>
>>54678606
You can zoom in pretty much infinitely and it will have the same quality as it does at the original zoom level.

http://kompozer.net/images/svg/Mozilla_Firefox.svg

http://cliparts.co/cliparts/kcM/n4X/kcMn4X5ki.svg

http://www.tuxpaint.org/stamps/stamps/vehicles/auto/sportscar3.svg
>>
>>54678687
instead of storing image data as pixels, vector images store them as mathematical functions which describe the geometry of the various components the image is comprised of
>>
>>54678722
Neat
>>
File: a.webm (2 MB, 1242x762) Image search: [Google]
a.webm
2 MB, 1242x762
>>54678687
they're resolution-independant, that is, they can be rendered at any arbitrary size without pixellation, as they're not made of pixels

vector images are commonly used for text, logos, and other simple designs that need to be printed or displayed at arbitrary sizes
>>
>>54678758
>>54678752
Thanks for the answers.

But if it's so much cleaner looking why isn't it used more places? Basically what OP's asking.
>>
File: 1438108333157.jpg (23 KB, 500x491) Image search: [Google]
1438108333157.jpg
23 KB, 500x491
>>54678754
>http://kompozer.net/images/svg/Mozilla_Firefox.svg
>>
>>54678513

>using W10

hahahahaha
>>
File: a.png (105 KB, 1163x669) Image search: [Google]
a.png
105 KB, 1163x669
>>54678774
it's only suitable for graphics that can be described with lines, curves, flat and gradient colors (again, such as text, logos, etc)
things like photographs can't be described with such basic features, so they're stored as raster images instead

pic is an svg file generated from >>54678758
>>
>>54678774
>It's a weird format where you don't have to explicitly describe how big your images is
>It was invented too late and never caught on.
>Most cases are going to need both vector and raster data (e.g. websites containing both logos and photos), and because PNG's are really small and you can hardly tell the difference (or can't at all), there's no point in implementing an additional file type that you won't use.
>To make an SVG you need a special program that outputs SVGs. That means that your image cannot have any non vector effects, e.g. blur effects or patterns. If you want to make pretty images in photoshop, they can't be SVGs.
>XML, nuff said.
They're really NOT as great as people make them out to be. However if you have a project (especially FOSS) with a distinct logo, it's a great idea to make an SVG of the logo even if you might use a PNG version on your website.
>>
I think the more important question is why the fuck doesn't 4chan support VP9 or H.264 for videos? Why only VP8? And why only WebM for containers, instead of MKV or MP4?
>>
File: a.webm (785 KB, 1242x762) Image search: [Google]
a.webm
785 KB, 1242x762
>>54678819
>Most cases are going to need both vector and raster data
you can embed raster elements into svg's
infact, there is a common hybrid raster/vector format people use all the time, ever heard of PDF?
>>
>>54678838
(4×2)chan supports H.264 videos with audio.
>>
>>54678954
What programs are you using for the graphics and then to make these .webms?
>>
>>54679058
the editor is inkscape (foss vector image editor)
i recorded the screen with simplescreenrecorder, and transcoded it to webm with ffmpeg
>>
>>54678838
Software patents. The MPEG-LA consortium can legitimately come after 4chan for royalty payments for H.264. As for VP9, it's a newer technology that hasn't has as much time in public as VP8.
>>
>>54678954
Yeah but it's very inefficient to do that. Either it has to base64 encode it or it has to link it (which would mean the browser has to send multiple requests for a single image). The con out-weighs the pro in most all cases with SVG.
>>
File: o.webm (777 KB, 1440x896) Image search: [Google]
o.webm
777 KB, 1440x896
>>54679276
>Yeah but it's very inefficient to do that. Either it has to base64 encode it or it has to link it (which would mean the browser has to send multiple requests for a single image). The con out-weighs the pro in most all cases with SVG.
It has its own niche uses
Logos and many to-be-printed documents are best shared as SVG so that they can be printed to any size without quality loss
That said it would be pretty cool to have another file format support on 4chin

A few months ago, i made a random SVG image generator
>>
>>54677899
Because SVG it's a horrible format full of possible exploits. It's not a good idea tu use it outside a image viewer or editor.
>>
>>54678446
xD lmaofam 100/10
>>
>>54677899
>>
>>54679517
Image files are already filtered so some information is removed while others containing additional information may not be uploaded. 4chan should set the same criteria for svg files and then alter tem without changing the graphics or disallow upload on particular scenarios.
>>
>>54678446
fuck off gen2
>>
>>54679469
that's cool
>>
>>54679469
Neat.
>>
>>54678774
It costs performance to render.
>>
>>54681543
So does making jpegs
>>
>>54679469
You'd make bank if you have that generator a visual interface and sold it to Tumble's art community for like 10 bucks.

Those guys will eat up anything as long as you tell them it can give them inspiration.
>>
>>54682527
Er, tumblr*
>>
>>54681555
True, but there you pay the cost only one time on your creation machine.
Actually decoding and displaying a JPEG is cheap, even on some smartphone, whereas rendering an SVG with thousands of highly segmented paths, shadows, gradients and all other kind of fancy effects may even bring down some weaker laptop machine.
>>
>>54677899
SVG is an absolutely shitty format. It's wasteful and slow. I have no fucking clue why there isn't an actually useful vector format around.

It would be amazing in today's web. Say, all those little icons on facebook and whatever people use these days — they would be much better done with little vector graphics. They wouldn't get blurry when zooming in and they would actually be smaller (again, if there was a good implementation around, but there isn't). Websites would be so much cleaner. Although I see how that isn't an ambition of today's web developer at all. Everything seems to be about even lazier programming/scripting. Nobody gives a shit about performance any longer. People seem to have accepted that you can't browse the web any longer on machines older than a few years. Fuck this.
>>
>>54678513
Same story with gifs, so it's not an excuse.
>>
>>54677899
Biased comparison. Why does the one on the left have all those white pixels around it and the one on the left doesn't?

I call bullshit
>>
>>54682708
>What is anti aliasing
>>
>>54682708
Because of antialiasing.

Although granted, formats with alpha channels exist.
>>
>>54682677
svg tries to have as many raster features as possible. A purely vector based format could be limiting.
>>
>>54678666
Shit tier excuse fampai.
4chan is already parsing *every* jpg through jpegtran to "sanitize" them.
svgcleaner has been around for quite a while.
>>
>>54678513
lol
>>
>>54679469
>That said it would be pretty cool to have another file format support on 4chin
Like the fucking webp.
>but muh failfox
Install an extension, like chromefags do for apng.
>>
File: AnSVGImage.png (393 KB, 1156x1320) Image search: [Google]
AnSVGImage.png
393 KB, 1156x1320
>>54682728
The problem is that this is what an SVG image looks like. It's fucking stupid.
>>
>>54683093
What's stupid about that?
>>
>>54682789
there's https://github.com/alnorris/SVG-Sanitizer/blob/master/SvgSanitizer.php too
>>
>>54683147
Does that picture look to you like an efficient way to save that information? Floats saved as decimal strings of numbers? Sure, there is svgz, but not only do even less browsers support that format, it is also literally just a zipped version of svg. You can do way better than that.
>>
I'd rather VP9 than SVG.
>>
>>54682721
>>54682727
>anti-aliasing means adding white pixels
hurrrrrrrrr durrrrrr derpppppppp hurffffffff pfffffffffrt

it is 2016 and what is PNG herp derp derp derf
>>
File: smugest of them all.jpg (48 KB, 544x600) Image search: [Google]
smugest of them all.jpg
48 KB, 544x600
>>54683517
>>
>>54683517
Are you mentally retarded or what
>>
>>54683559
No, are you? Anti-aliasing works by blending together colors.

Please tell me how blending together black and dark gray gives you white.
>>
>>54683575
Jesus Christ you are an idiot. Just look at the goddamn image.
>>
File: hurrrrrrrrrr.png (47 KB, 557x740) Image search: [Google]
hurrrrrrrrrr.png
47 KB, 557x740
>>54684252
>>
File: a.png (148 KB, 1280x818) Image search: [Google]
a.png
148 KB, 1280x818
>>54683575
>>54684252
>>54684354
happy?
>>
>>54683147
You can make an .svg that will crash your browser or worse with just a few keystrokes in Notepad.
>>
>>54684789

>>54683201
>>54682789
>>
Because svgs are a document format. It'd be like supporting pdf or html because they can show images.
>>
>>54684449
Much better, thanks
>>
>>54684928
i'm pretty sure you can post pdf's on /po/
>>
>>54684354
It was anti aliased against a white background. It only looks wrong because you're seeing it on a dark background.
>>
Because browsers are so horrendous pieces of shit that they completely freeze while SVG files are loading.
>>
>>54678513
>Using Windows
Very funny anon, now get off my board
>>
>>54684928
>>54684956
/gd/ supports PDF.
>>
File: 1462225942731.png (11 KB, 300x300) Image search: [Google]
1462225942731.png
11 KB, 300x300
>>54684977
I'm using Chrome 50 on a Core i3 and it works pretty much flawlessly.
>>
>>54683243
Why would it matter since practically all web browsers and servers support gzip compression over requests
>>
>>54678513
> windows 10
OP said why no svg on /g/.
He didn't say on /v/
>>
>>54685018
Dither is magic.
>>
File: dither.png (660 KB, 1440x2560) Image search: [Google]
dither.png
660 KB, 1440x2560
>>54685038
>Take some test image, save it as bmp and png
>zip the bmp and compare size to png
>tfw the zipped bmp is actually smaller than the png
>tfw even after optimizing the png, the zipped bmp is still smaller
>tfw tried to prove a point and failed miserably

>>54685131
It really is. On High-DPI screens images you could basically go with 3 bit screens.
>>
>>54678446
Thanks, doc
>>
File: do you even compress.png (626 KB, 1440x2560) Image search: [Google]
do you even compress.png
626 KB, 1440x2560
>>54685393
$ wget https://i.4cdn.org/g/1463931893299.png
$ optimizegraphics 1463931893299.png
$ convert 1463931893299.png 1463931893299.bmp
$ gzip -9 1463931893299.bmp
$ stat -c '%s %n' 1463931893299.*
696245 1463931893299.bmp.gz
640800 1463931893299.png

Status:
[x] TOLD
[ ] NOT TOLD
>>
>>54685542
Why didn't you use something with a higher Weissman score like pied piper?
Thread replies: 78
Thread images: 14

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.