protected function imageProcess()
    {
        if ($this->saved) {
            if (!$this->image)  $this->image = ImageManager::make($this->saved);

            if ($this->image_callable) {
                $callable = $this->image_callable;
                $callable($this->image);
            }

            if (count($this->resize)) {
                foreach ($this->resize as $resize) {
                    $this->image->resize($resize["width"], $resize["height"]);
                    $this->image->save($this->parseString($resize["filename"]));
                }
            }

            if (count($this->fit)) {
                foreach ($this->fit as $fit) {
                    $this->image->fit($fit["width"], $fit["height"]);
                    $this->image->save($this->parseString($fit["filename"]));
                }
            }

        }
    }
protected function imageProcess()
    {
        if ($this->saved) {
            if (!$this->image)  $this->image = ImageManager::make($this->saved);

            if ($this->image_callable) {
                $callable = $this->image_callable;
                $callable($this->image);
            }

            if (count($this->resize)) {
                foreach ($this->resize as $resize) {
                    $this->image->resize($resize["width"], $resize["height"]);
                    $this->image->save($this->parseString($resize["filename"]));
                }
            }

            if (count($this->fit)) {
                foreach ($this->fit as $fit) {
                    $this->image->fit($fit["width"], $fit["height"]);
                    $this->image->save($this->parseString($fit["filename"]));
                }
            }

        }
    }
protected function imageProcess ( ) { if ( $ this -> saved ) { if ( ! $ this -> image ) $ this -> image = ImageManager :: make ( $ this -> saved ) ; if ( $ this -> image_callable ) { $ callable = $ this -> image_callable ; $ callable ( $ this -> image ) ; } if ( count ( $ this -> resize ) ) { foreach ( $ this -> resize as $ resize ) { $ this -> image -> resize ( $ resize [ "width" ] , $ resize [ "height" ] ) ; $ this -> image -> save ( $ this -> parseString ( $ resize [ "filename" ] ) ) ; } } if ( count ( $ this -> fit ) ) { foreach ( $ this -> fit as $ fit ) { $ this -> image -> fit ( $ fit [ "width" ] , $ fit [ "height" ] ) ; $ this -> image -> save ( $ this -> parseString ( $ fit [ "filename" ] ) ) ; } } } }
postprocess image if needed
postprocess image if needed