Update functions_thumbs.php

This commit is contained in:
Roman Kelesidis 2023-12-23 13:19:56 +07:00
parent 43ff4f28b9
commit b43a521488

View File

@ -180,6 +180,9 @@ function create_thumbnail($source, $new_file, $mimetype)
imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
} }
// Устанавливаем тип содержимого в заголовок
header('Content-Type: ' . $mimetype);
switch ($type['format']) switch ($type['format'])
{ {
case IMG_GIF: case IMG_GIF: