I want to convert base64 encoded PNG images to jpg using python. I know how to decode from base64 back to raw:
import base64 pngraw = base64.decodestring(png_b64text)
but how can i convert this now to jpg? Just writing pngraw to a file obviously gives me only a png file. I know I can use PIL, but HOW would I do it? Thanks!
python image png jpeg
memyself
source share