From 94d6461568b154d3c228b91912c431474c6ef184 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 21 Nov 2017 16:06:03 -0800 Subject: Video thumbnail generator --- Zotlabs/Thumbs/Pdf.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Zotlabs/Thumbs/Pdf.php') diff --git a/Zotlabs/Thumbs/Pdf.php b/Zotlabs/Thumbs/Pdf.php index 5d413140f..98bcf11b5 100644 --- a/Zotlabs/Thumbs/Pdf.php +++ b/Zotlabs/Thumbs/Pdf.php @@ -19,10 +19,10 @@ class Pdf { $istream = fopen($file,'rb'); $ostream = fopen($tmpfile,'wb'); - if($istream && $ostream) { - pipe_streams($istream,$ostream); - fclose($istream); - fclose($ostream); + if($istream && $ostream) { + pipe_streams($istream,$ostream); + fclose($istream); + fclose($ostream); } $imagick_path = get_config('system','imagick_convert_path'); @@ -42,8 +42,8 @@ class Pdf { else { @rename($outfile,$file . '.thumb'); } - @unlink($tmpfile); } + @unlink($tmpfile); } } -- cgit v1.2.3