$img = curl_exec($curl);
curl_close($curl);
header('Content-Type: image/jpeg');
$new_width = 500;
$new_height = 500;
$image_p = imagecreatetruecolor($new_width, $new_height);
$image = imagecreatefromstring($img);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
imagejpeg($image_p, $_SERVER['DOCUMENT_ROOT']."/screens/temporary/screen.jpg", 70);
function form2(data) {
event.preventDefault();
var form_submit = data;
send_post(data, "form2", function (res) {
$("input[name=label]").val(res.id);
form_submit.submit();
});
};
Uncaught ReferenceError: LazyLoad is not defined
Хотя плагин я подключил