Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(array $arguments = array())
 {
     // Don't scale if we don't change the dimensions at all.
     if ($arguments['width'] !== $this->getToolkit()->getWidth() || $arguments['height'] !== $this->getToolkit()->getHeight()) {
         // Don't upscale if the option isn't enabled.
         if ($arguments['upscale'] || $arguments['width'] <= $this->getToolkit()->getWidth() && $arguments['height'] <= $this->getToolkit()->getHeight()) {
             return parent::execute($arguments);
         }
     }
     return TRUE;
 }