forked from Cavemanon/cavepaintings
res_limit testing and fixing
This commit is contained in:
@@ -20,8 +20,8 @@ class ResolutionLimit implements Extension {
|
||||
|
||||
if($min_w > 0 && $image->width < $min_w) throw new UploadException("Image too small");
|
||||
if($min_h > 0 && $image->height < $min_h) throw new UploadException("Image too small");
|
||||
if($max_w > 0 && $image->width > $min_w) throw new UploadException("Image too large");
|
||||
if($max_h > 0 && $image->height > $min_h) throw new UploadException("Image too large");
|
||||
if($max_w > 0 && $image->width > $max_w) throw new UploadException("Image too large");
|
||||
if($max_h > 0 && $image->height > $max_h) throw new UploadException("Image too large");
|
||||
|
||||
if(count($ratios) > 0) {
|
||||
$ok = false;
|
||||
|
Reference in New Issue
Block a user