diff --git a/function.resize.php b/function.resize.php index 5306cfd..71a9fe1 100644 --- a/function.resize.php +++ b/function.resize.php @@ -45,7 +45,7 @@ function resize($imagePath,$opts=null){ $purl = parse_url($imagePath); $finfo = pathinfo($imagePath); - $ext = $finfo['extension']; + list($ext) = explode("?",$finfo['extension']); # check for remote image.. if(isset($purl['scheme']) && ($purl['scheme'] == 'http' || $purl['scheme'] == 'https')):