We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca4aa8e commit 0d097c0Copy full SHA for 0d097c0
thumb.php
@@ -4,7 +4,7 @@ function thumbnailImage($imagePath) {
4
$im->setBackgroundColor(new ImagickPixel('transparent'));
5
$im->readImage(realpath($imagePath));
6
$dim=$im->getImageGeometry();
7
- if ( !isset($_GET['wh']) ) $wh=100; $wh=intval($_GET['wh']);
+ if ( !isset($_GET['wh']) ) $wh=100; else $wh=intval($_GET['wh']);
8
if ( $wh <= 0 ) $wh=100;
9
// $aspect=floatval($dim['width'])/floatval($dim['height']);
10
// $inverse_aspect=floatval($dim['height'])/floatval($dim['width']);
0 commit comments