config = $config; } /** * Get maximal width value for resized image * * @return int */ public function getMaxWidth(): int { return (int)$this->config->getValue(self::XML_PATH_MAX_WIDTH_IMAGE); } /** * Get maximal height value for resized image * * @return int */ public function getMaxHeight(): int { return (int)$this->config->getValue(self::XML_PATH_MAX_HEIGHT_IMAGE); } /** * Get config value for frontend resize * * @return bool */ public function isResizeEnabled(): bool { return (bool)$this->config->getValue(self::XML_PATH_ENABLE_RESIZE); } }