Thumb::isObsolete PHP Method

isObsolete() public method

Checks if the thumbnail is not needed because the original image is small enough
public isObsolete ( ) : boolean
return boolean
    public function isObsolete()
    {
        if ($this->options['overwrite'] === true) {
            return false;
        }
        // try to use the original if resizing is not necessary
        if ($this->options['width'] >= $this->source->width() && $this->options['height'] >= $this->source->height() && $this->options['crop'] == false && $this->options['blur'] == false && $this->options['upscale'] == false) {
            return true;
        }
        return false;
    }