public function updateModelBeforeStoring(EventInterface $event) {
        $image = $event->getRequest()->getImage();

        if ($image->hasBeenTransformed()) {
            $image->setBlob($this->imagick->getImageBlob());
        }
    }
public function updateModelBeforeStoring(EventInterface $event) {
        $image = $event->getRequest()->getImage();

        if ($image->hasBeenTransformed()) {
            $image->setBlob($this->imagick->getImageBlob());
        }
    }
public function updateModelBeforeStoring ( EventInterface $ event ) { $ image = $ event -> getRequest ( ) -> getImage ( ) ; if ( $ image -> hasBeenTransformed ( ) ) { $ image -> setBlob ( $ this -> imagick -> getImageBlob ( ) ) ; } }
Update the image model blob before storing it in case an event listener has changed the
image

@param EventInterface $event The event instance
Update the image model blob before storing it in case an event listener has changed the image