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