如何将base64图像转换为普通图像

时间:2016-01-13 09:35:26

标签: image base64 html2canvas

我想将base64图像转换为普通图像。我尝试了很多解决方案,但我没有成功。任何人都可以为我提供将base64图像转换为正常图像的解决方案,如jpg或png吗?

实际上,我正在将div转换为html2canvas图像,并且该图像带有非常长路径的base64图像。

例如:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkAAAAJACAYAAABlmtk2AAAgAElEQVR4Xu
3dQYoj5paEUdng7Zhemie1ipz00rwfg2nSUOPKvEdCdPD11IqreucPQZCT/u3j4+PPPx6P3x//D//vn8
fj389/dv/+9zxe/u9x//mt+ecvAvVH9DybvxvKhU//3/734+N//vrx42859K7s57/987v797/nBfJ/j/
vPb80/fxGoP6Ln2fzdUC58+jeARBCz/QAQEOP5IyDG80dAjOePgBjPHwEx3gBCQI33A1BBy+dvfprOXw
Utn7/5aTp/FbR8A8j8ON0PgAnpQP7Ex+H8mZAO5E98HM6fCelAA4j4PNwPwA3lQv6i59n83VAu5C96ns
3fDeVCA0j0npDtB/AERDiRP+A9IZr/ExDhRP6A94Ro/k9AhBMNIMB7RrQfwDMU7zfyv9s9I5n/MxTvN/
K/2z0jmf8zFO83GkB3u6ck+wE8hfF8JP8z3VOC+T+F8Xwk/zPdU4L5P4XxfKQBdKZ7TrAfwHMcr1fyv8
o9J5f/cxyvV/K/yj0nl/9zHK9XGkBXuSfl+gE8CfJ4Jv8j3JNi+T8J8ngm/yPck2L5PwnyeKYBdIR7Vq
6/oieZ/N3Q7mQv+h5dsG/AeQ9OF9YKFAD6Pz8HKw/TEgH8ic+DufPhHRgwb8BRBWw8EKBGkDWAUnXH9H
zbP5uKBfyFz3PLvg3gLwH5wsLBWoAnZ+fg/WHCelA/sTH4fyZkA4s+P/28fHx5x+Px+8k8abwP4/Hv59
f3b//PQ+Q/3vcf35r/vmLQP0RPc/m74Zy4dP//wBHqel8UTBFDwAAAABJRU5ErkJggg==

2 个答案:

答案 0 :(得分:0)

我的“形象”在我看来是腐败的。我可以拍摄一张名为wizard.png的图像,并使用如下标题创建它的base64编码版本:

{ echo "data:image/png;base64,"; openssl enc -base64 -in wizard.png; } > image.b64

这给了我一个名为image.b64的文件,如下所示:

data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAeAAAAKACAMAAABzFltgAAAAAXNSR0IArs4c6QAA
AwBQTFRF////9vf5/f3z9PTy8O/vuLi3h4aJe3qEjIyTnqGqlJSciIiVna2Jk5CP
m5yjsa6uu7zExsjVy8zT2drk5+ny6+zy29rYWVZYPEVvSFORNjuHODyViHZVlIxU
b2hUTko1LjB2MTVpNDl3PESJcm1pe4JlqpdvvsHJ0tLN4ODfXGFoWmbXS1W4Wmbn
ZnXrW2X1WGe4ybV04ttzUVvJsKlbUU5SWGaTbXKQrrG73+Dk7Ovs6OfkUVnaREq1
TVTTtalwPkWyR028jod0dHFvS1apSFBydIrQZXeyWGipz9DNYl1aLjF7S1TFQ0qp
P0ik16hUT1bZS1LMRUq7VFvlUk1KPUQnZXjIdYvpc4nYmJeYJCVcKix4PEKaLTGF
...
...
X+9XwFEV/w8Kj7AwotkslQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wMS0xM1Qx
MDoyMTowNyswMDowMJ4C96EAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMDEtMTNU
MTA6MjE6MDcrMDA6MDDvX08dAAAAAElFTkSuQmCC

我现在可以使用ImageMagick将该文件转换回普通图像:

convert inline:image.b64 result.png

enter image description here

答案 1 :(得分:0)



var base64_string = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIREhUREhIVFhUXGRgXGBgVGBgaGRchGBgaGx4gGRUZHSgiGBomHhgfITEjJSstMDAuFx8zODMtNyktLisBCgoKDg0OGxAQGy0lICUtLS8tLS0vLTItLTYtLS0tLS0tLS0tLS8vLy0tLS8tNS8vLS0tLS0vLS0tLS0tLS0tLf/AABEIALgBEgMBEQACEQEDEQH/xAAcAAEAAwEBAQEBAAAAAAAAAAAABQYHBA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2gFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQCgFAKAUAoBQH/9k=";


$("img").attr("src","data:image/png;base64," + base64_string);

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<img width="400" height="250"/>
&#13;
&#13;
&#13;