What is the effect of encoding an image in base64?(用base64编码图像有什么效果?)
问题描述
如果我将图像(jpg 或 png)转换为 base64,那么它会更大,还是具有相同的大小?会大多少?
If I convert an image (jpg or png) to base64, then will it be bigger, or will it have the same size? How much greater will it be?
是否建议在我的网站上使用 base64 编码的图像?
Is it recommended to use base64 encoded images on my website?
推荐答案
大约会大 37%:
非常粗略,Base64 编码的二进制数据的最终大小等于原始数据大小的 1.37 倍
Very roughly, the final size of Base64-encoded binary data is equal to 1.37 times the original data size
来源:http://en.wikipedia.org/wiki/Base64
这篇关于用base64编码图像有什么效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:用base64编码图像有什么效果?
基础教程推荐
- fetch 是否支持原生多文件上传? 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
