public function handleResize(ResizeImageEvent $event)
    {
        $image = $this->imageFactory->create(
            $this->rootDir . '/' . $event->getImage(),
            [$event->getWidth(), $event->getHeight(), $event->getMode()],
            $event->getTarget()
        );

        $event->setResultImage($image->getUrl($this->rootDir));
    }
public function handleResize(ResizeImageEvent $event)
    {
        $image = $this->imageFactory->create(
            $this->rootDir . '/' . $event->getImage(),
            [$event->getWidth(), $event->getHeight(), $event->getMode()],
            $event->getTarget()
        );

        $event->setResultImage($image->getUrl($this->rootDir));
    }
public function handleResize ( ResizeImageEvent $ event ) { $ image = $ this -> imageFactory -> create ( $ this -> rootDir . '/' . $ event -> getImage ( ) , [ $ event -> getWidth ( ) , $ event -> getHeight ( ) , $ event -> getMode ( ) ] , $ event -> getTarget ( ) ) ; $ event -> setResultImage ( $ image -> getUrl ( $ this -> rootDir ) ) ; }
Handle a resize image event.

@param ResizeImageEvent $event The event.

@return void
Handle a resize image event .