aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-06-11 12:55:28 +0200
committerMax Kostikov <max@kostikov.co>2019-06-11 12:55:28 +0200
commitc1cab6789e7a16fed49211a25245a64e6d849ed1 (patch)
tree205514a6dc08243166afd765071ed71dc6fac41a /util
parent7889612edce9e461139390ae46bd6d4483ff56d3 (diff)
downloadvolse-hubzilla-c1cab6789e7a16fed49211a25245a64e6d849ed1.tar.gz
volse-hubzilla-c1cab6789e7a16fed49211a25245a64e6d849ed1.tar.bz2
volse-hubzilla-c1cab6789e7a16fed49211a25245a64e6d849ed1.zip
Add resize on image scale to 4 and 7
Diffstat (limited to 'util')
-rwxr-xr-xutil/thumbrepair2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/thumbrepair b/util/thumbrepair
index e13a5f24a..6d3eabdbd 100755
--- a/util/thumbrepair
+++ b/util/thumbrepair
@@ -44,6 +44,7 @@ if($x) {
$im->storeThumbnail($nn, PHOTO_RES_320);
break;
case 4:
+ $im->scaleImage(300);
$im->storeThumbnail($nn, PHOTO_RES_PROFILE_300);
break;
case 5:
@@ -55,6 +56,7 @@ if($x) {
$im->storeThumbnail($nn, PHOTO_RES_PROFILE_48);
break;
case 7:
+ $im->doScaleImage(1200,435);
$im->storeThumbnail($nn, PHOTO_RES_COVER_1200);
break;
case 8: