protected function createImage()
    {
        if ($this->_isCreated) {
            return false;
        }
        $command = $this->getCommand();
        $fileName = $this->getImageFilename();

        $command->addArgs($this->_options);
        // Always escape input and output filename
        $command->addArg((string) $this->_page, null, true);
        $command->addArg($fileName, null, true);
        if (!$command->execute()) {
            $this->_error = $command->getError();
            if (!(file_exists($fileName) && filesize($fileName)!==0 && $this->ignoreWarnings)) {
                return false;
            }
        }
        $this->_isCreated = true;
        return true;
    }
protected function createImage()
    {
        if ($this->_isCreated) {
            return false;
        }
        $command = $this->getCommand();
        $fileName = $this->getImageFilename();

        $command->addArgs($this->_options);
        // Always escape input and output filename
        $command->addArg((string) $this->_page, null, true);
        $command->addArg($fileName, null, true);
        if (!$command->execute()) {
            $this->_error = $command->getError();
            if (!(file_exists($fileName) && filesize($fileName)!==0 && $this->ignoreWarnings)) {
                return false;
            }
        }
        $this->_isCreated = true;
        return true;
    }
protected function createImage ( ) { if ( $ this -> _isCreated ) { return false ; } $ command = $ this -> getCommand ( ) ; $ fileName = $ this -> getImageFilename ( ) ; $ command -> addArgs ( $ this -> _options ) ; // Always escape input and output filename $ command -> addArg ( ( string ) $ this -> _page , null , true ) ; $ command -> addArg ( $ fileName , null , true ) ; if ( ! $ command -> execute ( ) ) { $ this -> _error = $ command -> getError ( ) ; if ( ! ( file_exists ( $ fileName ) && filesize ( $ fileName ) !== 0 && $ this -> ignoreWarnings ) ) { return false ; } } $ this -> _isCreated = true ; return true ; }
Run the Command to create the tmp image file

@return bool whether creation was successful
Run the Command to create the tmp image file