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

Commit

Permalink
lib (collage): adjust given parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 committed Sep 14, 2020
1 parent 5864375 commit 5b2f6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/collage.php
@@ -1,6 +1,6 @@
<?php

function createCollage($srcImagePaths, $destImagePath, $takeFrame, $framePath, $Layout, $background2x4) {
function createCollage($srcImagePaths, $destImagePath, $takeFrame, $framePath, $Layout, $background_image) {

if (!is_array($srcImagePaths) || count($srcImagePaths) !== 4) {
return false;
Expand Down Expand Up @@ -41,7 +41,7 @@ function createCollage($srcImagePaths, $destImagePath, $takeFrame, $framePath, $
$heightNew=482;
$PositionsX = [63, 423, 785, 1146]; //X offset in Pixel
$PositionsY =[57, 642]; //Y offset in Pixel
$my_collage= imagecreatefrompng($background2x4);
$my_collage= imagecreatefrompng($background_image);

for ($j = 0; $j < 2; $j++) { //delta Y
$dY =$PositionsY[$j];
Expand Down

0 comments on commit 5b2f6a9

Please sign in to comment.