aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Thumbs/Pdf.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-21 16:06:03 -0800
committerzotlabs <mike@macgirvin.com>2017-11-21 16:06:03 -0800
commit94d6461568b154d3c228b91912c431474c6ef184 (patch)
treeb4dd392747bc25c0dcc13236cc640ec738b6d877 /Zotlabs/Thumbs/Pdf.php
parent09f1e4bdfbc7659cfb9f8db9b6c3278a66e08db7 (diff)
downloadvolse-hubzilla-94d6461568b154d3c228b91912c431474c6ef184.tar.gz
volse-hubzilla-94d6461568b154d3c228b91912c431474c6ef184.tar.bz2
volse-hubzilla-94d6461568b154d3c228b91912c431474c6ef184.zip
Video thumbnail generator
Diffstat (limited to 'Zotlabs/Thumbs/Pdf.php')
-rw-r--r--Zotlabs/Thumbs/Pdf.php10
1 files changed, 5 insertions, 5 deletions
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);
}
}