Image/Adapter/Gd2.php
public function save($destination = null, $newName = null)
    {
        $fileName = $this->_prepareDestination($destination, $newName);
        $pathInfo = pathinfo($fileName);
        if (!key_exists('extension', $pathInfo) || !in_array($pathInfo['extension'], $this->settings->getExtraFiletypes())) {
            parent::save($destination, $newName);
        }
    }
public function save($destination = null, $newName = null)
    {
        $fileName = $this->_prepareDestination($destination, $newName);
        $pathInfo = pathinfo($fileName);
        if (!key_exists('extension', $pathInfo) || !in_array($pathInfo['extension'], $this->settings->getExtraFiletypes())) {
            parent::save($destination, $newName);
        }
    }
public function save ( $ destination = null , $ newName = null ) { $ fileName = $ this -> _prepareDestination ( $ destination , $ newName ) ; $ pathInfo = pathinfo ( $ fileName ) ; if ( ! key_exists ( 'extension' , $ pathInfo ) || ! in_array ( $ pathInfo [ 'extension' ] , $ this -> settings -> getExtraFiletypes ( ) ) ) { parent :: save ( $ destination , $ newName ) ; } }
Save image to specific path.
If some folders of path does not exist they will be created

@param null|string $destination
@param null|string $newName
@return void
@throws \Exception  If destination path is not writable
Save image to specific path . If some folders of path does not exist they will be created