@@ 484-488 (lines=5) @@ | ||
481 | } |
|
482 | list($img_width, $img_height) = @getimagesize($uploaded_file); |
|
483 | if (is_int($img_width)) { |
|
484 | if ($this->options['max_width'] && $img_width > $this->options['max_width']) { |
|
485 | $file->error = $this->get_error_message('max_width'); |
|
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 | ||
@@ 494-498 (lines=5) @@ | ||
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 | ||
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 |