aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Cover_photo.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/Module/Cover_photo.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/Module/Cover_photo.php')
-rw-r--r--Zotlabs/Module/Cover_photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Cover_photo.php b/Zotlabs/Module/Cover_photo.php
index 88fd4485d..b911ac991 100644
--- a/Zotlabs/Module/Cover_photo.php
+++ b/Zotlabs/Module/Cover_photo.php
@@ -95,7 +95,7 @@ class Cover_photo extends \Zotlabs\Web\Controller {
$fname = dbunescbin($r[0]['content']);
$tmp_name = $fname . '-001';
$newsize = photo_calculate_scale(array_merge(getimagesize($fname),['max' => $max_thumb]));
- $cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $fname) . ' -thumbnail ' . $newsize . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmp_name);
+ $cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $fname) . ' -resize ' . $newsize . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmp_name);
// logger('imagick thumbnail command: ' . $cmd);
for($x = 0; $x < 4; $x ++) {
exec($cmd);