Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
collage: fix applying frame always on 2x4 layout
Browse files Browse the repository at this point in the history
Change-Id: I89fdceb76d202e220aa40514d53705ec4995d740
  • Loading branch information
andi34 committed Aug 5, 2021
1 parent 80a3789 commit b063c75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/collage.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ function createCollage($srcImagePaths, $destImagePath) {
$images_rotated = [];

for ($i = 0; $i < 4; $i++) {
$tempSubImage = imagecreatefromjpeg($srcImagePaths[$i]);

if (!file_exists($srcImagePaths[$i])) {
return false;
}
Expand All @@ -163,6 +161,7 @@ function createCollage($srcImagePaths, $destImagePath) {
ApplyFrame($srcImagePaths[$i], $srcImagePaths[$i], COLLAGE_FRAME);
}

$tempSubImage = imagecreatefromjpeg($srcImagePaths[$i]);
$tempSubRotated = imagerotate($tempSubImage, $degrees, $white);
$images_rotated[] = resizeImage($tempSubRotated, $height / 3.3, $width / 3.5);
}
Expand Down

0 comments on commit b063c75

Please sign in to comment.