protected function createThumbnail()
    {
		$this->thumbnail = $this->thumbnailName();

    	if (! $this->validFile($this->thumbnailPath())) {
    		$img = $this->intervention
				->make($this->imagePath())
				->resize($this->width(), $this->height(), function ($constraint) {
            		$constraint->aspectRatio();
            		$constraint->upsize();
        		});

        	$img->save($this->thumbnailPath());
    	}
    }
protected function createThumbnail()
    {
		$this->thumbnail = $this->thumbnailName();

    	if (! $this->validFile($this->thumbnailPath())) {
    		$img = $this->intervention
				->make($this->imagePath())
				->resize($this->width(), $this->height(), function ($constraint) {
            		$constraint->aspectRatio();
            		$constraint->upsize();
        		});

        	$img->save($this->thumbnailPath());
    	}
    }
protected function createThumbnail ( ) { $ this -> thumbnail = $ this -> thumbnailName ( ) ; if ( ! $ this -> validFile ( $ this -> thumbnailPath ( ) ) ) { $ img = $ this -> intervention -> make ( $ this -> imagePath ( ) ) -> resize ( $ this -> width ( ) , $ this -> height ( ) , function ( $ constraint ) { $ constraint -> aspectRatio ( ) ; $ constraint -> upsize ( ) ; } ) ; $ img -> save ( $ this -> thumbnailPath ( ) ) ; } }
Creates a new thumbnail.

@return void
Creates a new thumbnail .