+ 7

Which is best method to draw the graphics on the Web page (canvas or svg)?

Canvas and svg both methods are used to draw the graphics on the Web page but i confused which i choose the method.

16th Oct 2017, 1:38 PM
mohit verma
mohit verma - avatar
23 Answers
+ 13
Canvas - Elements are drawn programmatically - Drawing is done with pixels - Animations are not built in - High performance for pixels-based drawing operations - Resolution dependent - No support for event handlers - You can save the resulting image as .png or .jpg - Well suited for graphic-intensive games SVG - Elements are part of the page's DOM (Document object model) - Drawing is done with vectors - Effects, such as animations are built in - Based on standard XML syntax, which provides better accessibility - Resolution independent - Support for event handlers - Not suited for game applications - Best suited for applications with large rendering areas (for example, Google Maps)
17th Oct 2017, 11:52 AM
Chinmoy
Chinmoy - avatar
+ 10
Svg is scalable and perfect for icon ans logo images.
16th Oct 2017, 3:19 PM
Calviղ
Calviղ - avatar
+ 9
Svg builds a lot of interesting graphics, with the scalable graphics, you can build all kind of charts for data analysis on all medias. Study d3.js to know more.
16th Oct 2017, 4:41 PM
Calviղ
Calviղ - avatar
+ 9
I, personally prefer canvas, but it depends of your purposes. Also, it's possible to remake SVG with a canvas but not the opposite, you just need a bit of programming and trigonometry knowledge ;) But anyway, this is probably due to the fact I prefer making games and dislike both built in stuff and markup languages! ^^;
17th Oct 2017, 7:57 PM
Dapper Mink
Dapper Mink - avatar
+ 4
it's really depends what you want to do
18th Oct 2017, 1:08 PM
NoxFly
NoxFly - avatar
+ 4
SVG
19th Oct 2017, 5:44 AM
Akinboye Mayowa
Akinboye Mayowa - avatar
+ 3
Definitely SVG
17th Oct 2017, 5:23 PM
keivan Ipchi
keivan Ipchi - avatar
+ 3
IF you want to design logos or some shapes then svg is good but for making games or stuff like that use canvas
18th Oct 2017, 7:25 AM
Arvind Tarpasa
Arvind Tarpasa - avatar
+ 3
This is very subjective and also out of topic (!), but : My favorite kind of design is when drawings are made with pencils and papers on a table, then scanned and photoshoped to be integrated to the web page. It has many disadvantages, of course, but it's so crazy nice and alive compared to svg or canvas ...
19th Oct 2017, 12:23 AM
Cépagrave
Cépagrave - avatar
+ 3
when compared to canvas, SVG has better scalability i.e,printed with high quality resolution., but not suitable for game applications.
19th Oct 2017, 4:25 PM
Thriveni
Thriveni - avatar
+ 2
canvas and it is more powerful and faster
16th Oct 2017, 2:45 PM
عبد المنعم محمد عبدة
عبد المنعم محمد عبدة - avatar
+ 2
but the game need more options like touch things... and with svg is hard to make
16th Oct 2017, 3:27 PM
عبد المنعم محمد عبدة
عبد المنعم محمد عبدة - avatar
+ 2
I'm preferring svg, because it doesn't work with pixels so you can make it small or big. it keeps its look on certain things when you wanna make a image.
17th Oct 2017, 7:19 PM
Mulkey
Mulkey - avatar
+ 2
depends on requirements if you need to zoom an element than go for svg because it draw by vector so it can zoom for large scale but if you don't need to zoom than you can go for canvas
18th Oct 2017, 11:26 AM
Jenish Vaghasia
Jenish Vaghasia - avatar
+ 2
SVG
18th Oct 2017, 6:34 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 2
what about webGL
19th Oct 2017, 1:06 PM
_c0d£ Bit£_
_c0d£ Bit£_ - avatar
+ 1
i am sorry you are right svg is better
16th Oct 2017, 5:14 PM
عبد المنعم محمد عبدة
عبد المنعم محمد عبدة - avatar
+ 1
Yes;)
17th Oct 2017, 9:55 PM
IVAN KALIBABCHUK
IVAN KALIBABCHUK - avatar
+ 1
In my opinion canvas
19th Oct 2017, 10:58 AM
Ali Husnain Shah
Ali Husnain Shah - avatar
0
svg is better than canvas
18th Oct 2017, 3:48 PM
R.Nandhini
R.Nandhini - avatar