mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions_thumbs.php
This commit is contained in:
parent
43ff4f28b9
commit
b43a521488
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user