L
L
Leonid Gusman2017-06-17 00:57:25
Google Chrome
Leonid Gusman, 2017-06-17 00:57:25

How to correctly insert an image in SVG format?

Good day. Such a problem: I can’t properly insert an image in svg format, Google Chrome and other browsers refuse to see it. THE CODE:<img src="fish.svg">

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Ankhena, 2017-06-17
@gus_man

What is the best way to connect svg to the site?

E
Elisey Basenko, 2017-06-18
@Elisseii

Tip, create a vector in Adobe illustrator, export to SVG and take the code from there.
The code is best pasted directly into HTML or PHP.
If your SVG image has a lot of dots and you are coding in PHP, then you can forget about long SVG lines in the page code (uncomfortable) and import them with a neat line like this (convenient) :)
For Wordpress, you need to specify the path to the theme directory. So:
Well, I think there is no need to explain about the advantages of SVG)

I
Ilya, 2017-06-17
@Quirel

https://youtu.be/TNX0-JLdM_U

L
Leonid Gusman, 2017-06-17
@gus_man

Thank you very much, everything was decided by replacing the picture (it looks like the file was damaged or something else)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question