Commit 8848885d authored by Mario's avatar Mario

Merge branch 'patch-1' into 'master'

Add resize on image scale to 4 and 7

See merge request !1667
parents 7889612e c1cab678
Pipeline #141918 passed with stages
in 4 minutes and 25 seconds
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment