Closed lynxtdc closed 7 years ago
So...found the answer and will leave it here for anyone else who may be curious
$avatar = new LetterAvatar('Some Name'); $avaParts = explode(',', $avatar);
$path = '/path/to/where/you/want/to/store/your/images'; $filename = 'your_desired_filename.png'; file_put_contents($path . $filename, base64_decode($avaParts[1]));
probably a stupid question, but how do you save the output as a file, specifically in PHP