https://github.com/inottn/img2base64
🖼 upload img and tranform to base64
https://github.com/inottn/img2base64
base64 ecmascript6 javascript
Last synced: about 1 year ago
JSON representation
🖼 upload img and tranform to base64
- Host: GitHub
- URL: https://github.com/inottn/img2base64
- Owner: inottn
- Created: 2018-09-25T14:46:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T02:18:39.000Z (over 7 years ago)
- Last Synced: 2025-01-26T03:28:08.302Z (over 1 year ago)
- Topics: base64, ecmascript6, javascript
- Language: JavaScript
- Homepage: https://inottn.github.io/img2base64/
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 介绍
图片在线上传并转换为Base64编码。
1. 支持 PNG、GIF、JPG、BMP、ICO 格式。
2. 将图片转换为Base64编码,可用于减少图片的请求数量,以及本地开发时资源跨域问题。
3. CSS中使用:`background-image: url("data:image/png;base64,xxxxx=...")`。
4. HTML中使用:`
`。
5. 被转换的图片不宜过大。