Manager.php
public function convert($format, $file)
    {
        $file = ltrim($file, '/');
        $this->checkImage($file);

        return $this->wrapper->run("convert", $this->getWebDirectory() . '/' . $file, $this->convertFormat($format), $this->getCacheDirectory() . '/' . $this->pathify($format) . '/' . $file);
    }
public function convert($format, $file)
    {
        $file = ltrim($file, '/');
        $this->checkImage($file);

        return $this->wrapper->run("convert", $this->getWebDirectory() . '/' . $file, $this->convertFormat($format), $this->getCacheDirectory() . '/' . $this->pathify($format) . '/' . $file);
    }
public function convert ( $ format , $ file ) { $ file = ltrim ( $ file , '/' ) ; $ this -> checkImage ( $ file ) ; return $ this -> wrapper -> run ( "convert" , $ this -> getWebDirectory ( ) . '/' . $ file , $ this -> convertFormat ( $ format ) , $ this -> getCacheDirectory ( ) . '/' . $ this -> pathify ( $ format ) . '/' . $ file ) ; }
Shortcut to run a "convert" command => creates a new image

@param string $format ImBundle format string
@param string $file Source file path

@return string
@codeCoverageIgnore
Shortcut to run a convert command = > creates a new image