xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

SVG image tag

SVG image tag

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_Image_Tag

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="5cm" height="4cm" version="1.1"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	<image href="firefox.jpg" x="0" y="0" height="50px" width="50px"/>
</svg>


<svg width="5cm" height="4cm" version="1.1"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	<image href="firefox.jpg" x="0" y="0" height="50px" width="50px"/>
</svg>


OK

href + base64

<image overflow="visible" width="34" height="34" x="43" y="70" href="data:image/jpeg;base64,/9j/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIACgAKAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFR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SV1UMuw7xPt+X3tzHEaQ0MDUdAaL4eafcpIZYjqzwNBHEAXjTzG2+h5TjjvjOOKhkvRd2hZFzEy+U02V2lHGF6E5bJHA/TNdVP/wAk30j/ALDs/wD6DPXBaN/yKcH/AF2tv/Q0rkzWjDmg/Nr8j2MprStOPkn+Z7v4B8OXei6RbS30n+kvbIrR7cGPjOD7jgfhXYUi/dH0pa7qVKFKPLBaHnH/2Q=="></image>

bug

src

<image overflow="visible" width="34" height="34" x="43" y="70" src="https://cdn.xgqfrms.xyz/logo/favicon.png"></image>

href

<image overflow="visible" width="34" height="34" x="43" y="70" href="https://cdn.xgqfrms.xyz/logo/favicon.png"></image>

xlink:href

<image overflow="visible" width="34" height="34" x="43" y="70" xlink:href="https://cdn.xgqfrms.xyz/logo/favicon.png"></image>


<image overflow="visible" width="34" height="34" x="43" y="70" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIge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h7gql4yjq5NcVi4VZeE5gYiyMVdydBDtrMLfNj4vtWUS9W3BLewe0y6/BR4dxGcbYWun9Wo2l7wkJY1NK2Ds40Ia8LbupyQ5DFwGn0BVIFoQYMzUMc6Z+y5a9eWmfSrhgRw0baWaa29avRX/vNcymc1i9sg1mfAqXTx9HS89qpuy0w8FUOo3/E2AA8q6tI3XTYqsAAAAASUVORK5CYII="></image>

PNG to Base64 in js

Base64 Image convert

Canvas

https://stackoverflow.com/questions/6150289/how-can-i-convert-an-image-into-base64-string-using-javascript

Base64 Image Encoder

https://www.base64-image.de/

refs

https://www.pluralsight.com/paths/python

https://cdn.xgqfrms.xyz/logo/favicon.png



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-08-05 12:24  xgqfrms  阅读(275)  评论(3编辑  收藏  举报