aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Photo
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-06-18 11:31:14 +0200
committerMax Kostikov <max@kostikov.co>2019-06-18 11:31:14 +0200
commita677a68ab7e1f50f5b11c02a42dbc6cad3ebb444 (patch)
tree95e9c8863d20b7c91a6d07297cacd2ef8cf32818 /Zotlabs/Photo
parentfc2a038ee1ba366d8ed3d6e301e8de3b05290889 (diff)
downloadvolse-hubzilla-a677a68ab7e1f50f5b11c02a42dbc6cad3ebb444.tar.gz
volse-hubzilla-a677a68ab7e1f50f5b11c02a42dbc6cad3ebb444.tar.bz2
volse-hubzilla-a677a68ab7e1f50f5b11c02a42dbc6cad3ebb444.zip
Avoid to process original images using storeThumbnail
Diffstat (limited to 'Zotlabs/Photo')
-rw-r--r--Zotlabs/Photo/PhotoDriver.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/Zotlabs/Photo/PhotoDriver.php b/Zotlabs/Photo/PhotoDriver.php
index 146ef0ae4..94d2c3436 100644
--- a/Zotlabs/Photo/PhotoDriver.php
+++ b/Zotlabs/Photo/PhotoDriver.php
@@ -502,13 +502,17 @@ abstract class PhotoDriver {
*
* @param array $arr
* @param scale int
- * @return boolean|array
+ * @return boolean
*/
public function storeThumbnail($arr, $scale = 0) {
-
+
+ // We only process thumbnails here
+ if($scale == 0)
+ return false;
+
$arr['imgscale'] = $scale;
- if(boolval(get_config('system','filesystem_storage_thumbnails', 0)) && $scale > 0) {
+ if(boolval(get_config('system','filesystem_storage_thumbnails', 0))) {
$channel = channelx_by_n($arr['uid']);
$arr['os_storage'] = 1;
$arr['os_syspath'] = 'store/' . $channel['channel_address'] . '/' . $arr['os_path'] . '-' . $scale;