25 \
Magento\Framework\Registry $coreRegistry,
29 parent::__construct($context, $coreRegistry);
40 $file = $this->_objectManager->get(\
Magento\Cms\Helper\Wysiwyg\Images::class)->idDecode($file);
41 $thumb = $this->
getStorage()->resizeOnTheFly($file);
43 $resultRaw = $this->resultRawFactory->create();
44 if ($thumb !==
false) {
46 $image = $this->_objectManager->get(\
Magento\Framework\Image\AdapterFactory::class)->create();
48 $resultRaw->setHeader(
'Content-Type',
$image->getMimeType());
49 $resultRaw->setContents(
$image->getImage());
__construct(Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory)