I am currently doing the following to decode base64 images in PHP:
$img = str_replace(\'data:image/jpeg;base64,\', \'\', $s[\'image\']); $img = str_rep
You would have to test it but I think this solution should be slightly faster than Mihai Iorga's
$offset = str_pos($s['image'], ','); $data = base64_decode(substr($s['image'], $offset));