I\'m using Nihilogic\'s \"Canvas2Image\" JavaScript tool to convert canvas drawings to PNG images. What I need now is to turn those base64 strings that this tool generates,
Try this:
file_put_contents('img.png', base64_decode($base64string));
file_put_contents docs