public function shouldProcess(Version $version) { if ($this->getFormat() == self::FORMAT_JPEG) { return $version->getTypeObject()->getGenericType() == Type::T_IMAGE && $version->getTypeObject()->getName() != 'JPEG'; } return false; }
public function shouldProcess(Version $version) { return $version->getTypeObject()->getGenericType() == Type::T_IMAGE; }