用base64编码图像有什么作用? [英] What is the effect of encoding an image in base64?

查看:42
本文介绍了用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编码图像有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆