Driver/PhotatoesDriver.php
private function addImage(Response $response, Image $image, $galleryId, $imageSize)
    {
        if ($image->get($imageSize)) {
            $href = $image->get($imageSize)->getHref();
            $file = new FileInfo(
                $image->getTitle().'('.$imageSize.')',
                $this->getDriverId(),
                $image->getUpdateAt()->getTimestamp(),
                $galleryId
            );
            $file->setMime('image/jpeg');
            $file->setTmb($image->get($this->driverOptions['thumbSize'])->getHref());
            $file->setUrl($href);
            $file->setPath($href);
            $response->addFile($file);
        }
    }
private function addImage(Response $response, Image $image, $galleryId, $imageSize)
    {
        if ($image->get($imageSize)) {
            $href = $image->get($imageSize)->getHref();
            $file = new FileInfo(
                $image->getTitle().'('.$imageSize.')',
                $this->getDriverId(),
                $image->getUpdateAt()->getTimestamp(),
                $galleryId
            );
            $file->setMime('image/jpeg');
            $file->setTmb($image->get($this->driverOptions['thumbSize'])->getHref());
            $file->setUrl($href);
            $file->setPath($href);
            $response->addFile($file);
        }
    }
private function addImage ( Response $ response , Image $ image , $ galleryId , $ imageSize ) { if ( $ image -> get ( $ imageSize ) ) { $ href = $ image -> get ( $ imageSize ) -> getHref ( ) ; $ file = new FileInfo ( $ image -> getTitle ( ) . '(' . $ imageSize . ')' , $ this -> getDriverId ( ) , $ image -> getUpdateAt ( ) -> getTimestamp ( ) , $ galleryId ) ; $ file -> setMime ( 'image/jpeg' ) ; $ file -> setTmb ( $ image -> get ( $ this -> driverOptions [ 'thumbSize' ] ) -> getHref ( ) ) ; $ file -> setUrl ( $ href ) ; $ file -> setPath ( $ href ) ; $ response -> addFile ( $ file ) ; } }
add Image.

@param Response $response
@param Image    $image
@param string   $galleryId
@param string   $imageSize
add Image .