Thread [Image-Magick] BlobToImage
(17 answers)
Opened by Kean at 2013-01-11 12:04
Hüstel:decode_base64
Ich denke du willst nicht encoden sondern decoden: $blob = decode_base64($blob); Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 #!/usr/bin/perl use strict; use warnings; use Image::Magick; use MIME::Base64; my $infile='in.jpg.base64'; my $blob=eval{local($/,@ARGV)=(undef,$infile); <>}; $blob = decode_base64($blob); my $image = Image::Magick->new(); $image->BlobToImage($blob); $image->Display(); |