aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Thumbs/Pdf.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-06-26 17:19:32 -0700
committerzotlabs <mike@macgirvin.com>2018-06-26 17:19:32 -0700
commit156010050c874eb51f8d2b2334d36909f99e732c (patch)
tree1aae6de1e8bd990ebe911300b7cefe8d975e5059 /Zotlabs/Thumbs/Pdf.php
parent524551a05c9ea7436afc713e2564aacd9276541e (diff)
downloadvolse-hubzilla-156010050c874eb51f8d2b2334d36909f99e732c.tar.gz
volse-hubzilla-156010050c874eb51f8d2b2334d36909f99e732c.tar.bz2
volse-hubzilla-156010050c874eb51f8d2b2334d36909f99e732c.zip
imagick converter: -thumbnail doesn't preserve exif, -resize does
Diffstat (limited to 'Zotlabs/Thumbs/Pdf.php')
-rw-r--r--Zotlabs/Thumbs/Pdf.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Thumbs/Pdf.php b/Zotlabs/Thumbs/Pdf.php
index 98bcf11b5..11714ad53 100644
--- a/Zotlabs/Thumbs/Pdf.php
+++ b/Zotlabs/Thumbs/Pdf.php
@@ -27,7 +27,7 @@ class Pdf {
$imagick_path = get_config('system','imagick_convert_path');
if($imagick_path && @file_exists($imagick_path)) {
- $cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmpfile . '[0]') . ' -thumbnail ' . $width . 'x' . $height . ' ' . escapeshellarg(PROJECT_BASE . '/' . $outfile);
+ $cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmpfile . '[0]') . ' -resize ' . $width . 'x' . $height . ' ' . escapeshellarg(PROJECT_BASE . '/' . $outfile);
// logger('imagick thumbnail command: ' . $cmd);
for($x = 0; $x < 4; $x ++) {
exec($cmd);