private function createThumbnails(UploadedFile $uploadedFile)
    {
        if (empty($this->dimensions)) {
            return $this;
        }

        foreach ($this->dimensions as $key => $dimension) {
            if (empty($dimension) || ! is_array($dimension)) {
                continue;
            }

            list($width, $height, $squared) = $dimension;

            $targetFilepath = $this->getThumbnailsTargetUploadFilepath($key);

            $image = $this->resizeCropImage($uploadedFile, $targetFilepath, $width, $height, $squared);

            if (! $image) {
                continue;
            }

            $this->results['dimensions'][$key] = $image;
        }

        return $this;
    }
private function createThumbnails(UploadedFile $uploadedFile)
    {
        if (empty($this->dimensions)) {
            return $this;
        }

        foreach ($this->dimensions as $key => $dimension) {
            if (empty($dimension) || ! is_array($dimension)) {
                continue;
            }

            list($width, $height, $squared) = $dimension;

            $targetFilepath = $this->getThumbnailsTargetUploadFilepath($key);

            $image = $this->resizeCropImage($uploadedFile, $targetFilepath, $width, $height, $squared);

            if (! $image) {
                continue;
            }

            $this->results['dimensions'][$key] = $image;
        }

        return $this;
    }
private function createThumbnails ( UploadedFile $ uploadedFile ) { if ( empty ( $ this -> dimensions ) ) { return $ this ; } foreach ( $ this -> dimensions as $ key => $ dimension ) { if ( empty ( $ dimension ) || ! is_array ( $ dimension ) ) { continue ; } list ( $ width , $ height , $ squared ) = $ dimension ; $ targetFilepath = $ this -> getThumbnailsTargetUploadFilepath ( $ key ) ; $ image = $ this -> resizeCropImage ( $ uploadedFile , $ targetFilepath , $ width , $ height , $ squared ) ; if ( ! $ image ) { continue ; } $ this -> results [ 'dimensions' ] [ $ key ] = $ image ; } return $ this ; }
Create thumbnails.

@access private
@param UploadedFile $uploadedFile
Create thumbnails .