aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-15 14:18:40 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-15 14:18:40 -0700
commitbf5a1f662a4f00e8376613fa387c843d539c7433 (patch)
tree8077cf749de57edd83885859698c27dba9f6a31a /include/network.php
parentd9753989bf63047051bc0fbfc6e2b438040acf85 (diff)
downloadvolse-hubzilla-bf5a1f662a4f00e8376613fa387c843d539c7433.tar.gz
volse-hubzilla-bf5a1f662a4f00e8376613fa387c843d539c7433.tar.bz2
volse-hubzilla-bf5a1f662a4f00e8376613fa387c843d539c7433.zip
generate all (non-square) photo scales - even if the original photo is smaller than the scale target sizes.
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/network.php b/include/network.php
index 41e1ff37c..e1793b405 100644
--- a/include/network.php
+++ b/include/network.php
@@ -586,7 +586,7 @@ function scale_external_images($s, $include_link = true, $scale_replace = false)
if(substr($mtch[1],0,1) == '=') {
$owidth = intval(substr($mtch[2],1));
- if(intval($owidth) > 0 && intval($owidth) < 640)
+ if(intval($owidth) > 0 && intval($owidth) < 1024)
continue;
}
@@ -624,9 +624,9 @@ function scale_external_images($s, $include_link = true, $scale_replace = false)
$orig_width = $ph->getWidth();
$orig_height = $ph->getHeight();
- if($orig_width > 640 || $orig_height > 640) {
+ if($orig_width > 1024 || $orig_height > 1024) {
$tag = (($match[1] == 'z') ? 'zmg' : 'img');
- $ph->scaleImage(640);
+ $ph->scaleImage(1024);
$new_width = $ph->getWidth();
$new_height = $ph->getHeight();
logger('scale_external_images: ' . $orig_width . '->' . $new_width . 'w ' . $orig_height . '->' . $new_height . 'h' . ' match: ' . $mtch[0], LOGGER_DEBUG);