Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVG pixelation in chrome

Tags:

This is very strange. I am using SVG images, because of the low file size, sharp rendering, and scalability ( the objects animate quite a bit ). Its working perfect in FF, ie9, Safari and iPad, but in chrome certain SVG images are rendering very poorly.

SVG in chrome

SVG in safari

Any ideas why this might be happening? The svg files themselves are very small.

Here is some a sample svg

like image 494
Fresheyeball Avatar asked Mar 05 '12 06:03

Fresheyeball


People also ask

Why does my SVG look pixelated?

Root Cause. The problem is as the graphic becomes smaller there are less pixels to work with. When rendering the SVG the browser is using equations to determine pixels but the equations result in numbers that fall in between pixels.

Can Chrome display SVG files?

Displaying SVG in web browsers like Chrome, Firefox and Internet Explorer can be done in several ways: Point the browser to the URL of the SVG file. Embed SVG inside an HTML page.

Do SVG use pixels?

So how does the SVG format differ to bitmap-based images? They are vector-based meaning that they are resolution independent. Rather than consisting of pixels, SVG images consist of shapes. This means that they can scale indefinitely without a reduction of quality.


1 Answers

So anyway, this is a legit chrome bug. And there is a fix, make the svg 'larger', svg files that internally report as too small cause this bug.

like image 157
Fresheyeball Avatar answered Sep 27 '22 22:09

Fresheyeball