We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2e070 commit cfd6389Copy full SHA for cfd6389
app/code/Magento/Catalog/Block/Product/Gallery.php
@@ -12,7 +12,6 @@
12
namespace Magento\Catalog\Block\Product;
13
14
use Magento\Catalog\Model\Product;
15
-use Magento\Catalog\Model\Product\Image;
16
use Magento\Framework\App\Filesystem\DirectoryList;
17
use Magento\Framework\Data\Collection;
18
@@ -123,6 +122,7 @@ public function getImageFile()
123
122
public function getImageWidth()
124
{
125
$file = $this->getCurrentImage()->getPath();
+
126
if ($this->_filesystem->getDirectoryRead(DirectoryList::MEDIA)->isFile($file)) {
127
$size = getimagesize($file);
128
if (isset($size[0])) {
0 commit comments