markdown embed pictures

Embed refer to local files will not be lost and lost.

Reference: https://blog.csdn.net/testcs_dn/article/details/78952358

https://blog.csdn.net/testcs_dn/article/details/78952358

Use Data Url files into markdown document flow

Generates Online Data Url:

http://imgbase64.duoshitong.com/

https://tool.css-js.com/base64.html

avatar

Underuse of Data Url:

1, the document will become very large volume!

2, IE6 / 7 does not support Data URL technology, unfortunately, there are many users in the use of this ancient browser in China. Hope that all parties, including both official and private efforts to do more work, so that modern browsers (Google Chrome, Firefox, IE11 +) dominate the market as soon as possible, this is the greatest wish of our Web programmers.

The advantage of using the Data Url:

Speaking of the advantages of the Data URI, natural and ultimately "to reduce the number of links," the picture into Base64 encoding to reduce the number of images links. Let's take it for granted about the same picture, if not initiate a download request, will open the speed is faster. However, there are several issues that need attention under:

Image is always to download, then download a picture of a bunch of fast download speed or coding?

The browser displays the picture, the processing efficiency which is faster?

Image caching problem

  The original test, using the Data URL Demo mode when not in use to render than consume about 53 percent of the CPU resources, memory and more out about four times, consuming an average of 24.6 times higher. Thus, using the Data URl mode or need more consideration, the amount used in the acceptable range.

Guess you like

Origin www.cnblogs.com/lqerio/p/11111851.html