I open one file with 70kb :
$img = 'data:image/jpg;base64,'.base64_encode(file_get_contents($img));
If I save this code via below code, image saved with 1.5mb size!
$file = fopen('new.jpg', "wb");
$data = explode(',', $img);
fwrite($file, base64_decode($data[1]));
fclose($file);
How I can fix it?