@@ 489-493 (lines=5) @@ | ||
486 | ||
487 | return false; |
|
488 | } |
|
489 | if ($this->options['max_height'] && $img_height > $this->options['max_height']) { |
|
490 | $file->error = $this->get_error_message('max_height'); |
|
491 | ||
492 | return false; |
|
493 | } |
|
494 | if ($this->options['min_width'] && $img_width < $this->options['min_width']) { |
|
495 | $file->error = $this->get_error_message('min_width'); |
|
496 | ||
@@ 499-503 (lines=5) @@ | ||
496 | ||
497 | return false; |
|
498 | } |
|
499 | if ($this->options['min_height'] && $img_height < $this->options['min_height']) { |
|
500 | $file->error = $this->get_error_message('min_height'); |
|
501 | ||
502 | return false; |
|
503 | } |
|
504 | } |
|
505 | ||
506 | return true; |