How do I convert a base64 image?
问题 I am trying to use the "convert" command-line tool from ImageMagick. I have a base64 encoded png file and I need to convert it to another format. I am looking at documentation and a forum discussion which suggests that I should be able to use this syntax: convert inline:file.txt file.jpg But when I do this, I get this error message: convert: corrupt image `file.txt' @ error/constitute.c/ReadInlineImage/910. What am I doing wrong? How do I get convert to read a base64 image file? 回答1: Updated