registerOption(new OptionType\Range($this->translator->trans('Delay'), self::OPTION_DELAY, 50, 500, 100)); } public function getType() { return self::TYPE_ANIMATION; } public function getDescription() { return $this->translator->trans('Generates an animated Gif file'); } public function getMediaAlchemystSpec() { if (! $this->spec) { $this->spec = new \MediaAlchemyst\Specification\Animation(); } $size = $this->getOption(self::OPTION_SIZE)->getValue(); $resolution = $this->getOption(self::OPTION_RESOLUTION)->getValue(); $this->spec->setDelay($this->getOption(self::OPTION_DELAY)->getValue()); $this->spec->setDimensions($size, $size); $this->spec->setQuality($this->getOption(self::OPTION_QUALITY)->getValue()); $this->spec->setStrip($this->getOption(self::OPTION_STRIP)->getValue()); $this->spec->setResolution($resolution, $resolution); return $this->spec; } }