Skip to content

Commit

Permalink
Merge pull request #36 from Mknsri/master
Browse files Browse the repository at this point in the history
Fixed image-variable name conflict
  • Loading branch information
samayo committed Aug 4, 2015
2 parents dc541c9 + 14bce94 commit 533c16a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/func.image-resize.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ function resize($image, $mimeType, $imgWidth, $imgHeight, $newWidth, $newHeight,

$imgString = file_get_contents($image);

$image = imagecreatefromstring($imgString);
$imageFromString = imagecreatefromstring($imgString);
$tmp = imagecreatetruecolor($newWidth, $newHeight);
imagecopyresampled(
$tmp,
$image,
$imageFromString,
0,
0,
0,
Expand Down Expand Up @@ -73,4 +73,3 @@ function resize($image, $mimeType, $imgWidth, $imgHeight, $newWidth, $newHeight,
}



0 comments on commit 533c16a

Please sign in to comment.