Yngvarr

Generation

generate functionFri, 25 Nov 2022

base64 save to jpg

function base64_to_jpg($base64_string, $output_file) { $ifp = fopen($output_file, "wb"); fwrite($ifp, base64_decode($base64_string)); fclose($ifp); return $output_file; }

Questions about programming?Chat with your personal AI assistant