parent
86948e7b93
commit
74c8d20284
1 changed files with 6 additions and 3 deletions
|
@ -344,10 +344,13 @@ class FileDataHelper
|
|||
public static function renderImage($file)
|
||||
{
|
||||
$im = @imagecreatefromjpeg($file);
|
||||
header('Content-Type: image/jpeg');
|
||||
$img = $im;
|
||||
imagejpeg($img);
|
||||
imagedestroy($img);
|
||||
|
||||
if ($im) {
|
||||
header('Content-Type: image/jpeg');
|
||||
imagejpeg($img);
|
||||
imagedestroy($img);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue