aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-06-21 22:27:27 +0200
committerMax Kostikov <max@kostikov.co>2019-06-21 22:27:27 +0200
commite8918ca149f9eb0ea4148431772b9e5090f3ea7f (patch)
tree83068e5673fcb0192a1a73228e767781285662f0 /include
parentdd515da889d642ae68210a8b7e91ac587d3cdee7 (diff)
downloadvolse-hubzilla-e8918ca149f9eb0ea4148431772b9e5090f3ea7f.tar.gz
volse-hubzilla-e8918ca149f9eb0ea4148431772b9e5090f3ea7f.tar.bz2
volse-hubzilla-e8918ca149f9eb0ea4148431772b9e5090f3ea7f.zip
Respect photo thumbnails storage in import
Diffstat (limited to 'include')
-rw-r--r--include/photo/photo_driver.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index c11580bdc..2ca3acf7d 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -371,21 +371,19 @@ function import_channel_photo($photo, $type, $aid, $uid) {
// photo size
$img->scaleImageSquare(300);
- $r = $img->save($p);
+ $r = $img->storeThumbnail($p, PHOTO_RES_PROFILE_300);
if($r === false)
$photo_failure = true;
// thumb size
$img->scaleImage(80);
- $p['imgscale'] = 5;
- $r = $img->save($p);
+ $r = $img->storeThumbnail($p, PHOTO_RES_PROFILE_80);
if($r === false)
$photo_failure = true;
// micro size
$img->scaleImage(48);
- $p['imgscale'] = 6;
- $r = $img->save($p);
+ $r = $img->storeThumbnail($p, PHOTO_RES_PROFILE_48);
if($r === false)
$photo_failure = true;