Magento 2.2.5 - Unsupported image format on product detail pageHow to gracefully handle image exceptions?Not able to add/update magento2 category post upgrade from 1.9 to 2.1.0Magento2.2.4 : Uninstall a theme throw exceptions?Magento 2.2.6 exceptionMagento2 REST API get all customers detailsDeleted ShipperHQ module causing error in “All Customers” section of Magento 2Unable to Serialize Value Magento 2.2.6“Area code is not set” in var/logGetting Errors after MySQL database importUnable to serialize value problem with Magento 2.2.6Magento 2: product image upload error

Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?

What's the polite way to say "I need to urinate"?

Examples of subgroups where it's nontrivial to show closure under multiplication?

Is it possible to determine the symmetric encryption method used by output size?

Do I have an "anti-research" personality?

Rivers without rain

Controversial area of mathematics

How to creep the reader out with what seems like a normal person?

How can I place the product on a social media post better?

Does a semiconductor follow Ohm's law?

What route did the Hindenburg take when traveling from Germany to the U.S.?

How come there are so many candidates for the 2020 Democratic party presidential nomination?

how to find the equation of a circle given points of the circle

how to sum variables from file in bash

How can the Zone of Truth spell be defeated without the caster knowing?

How to pronounce 'C++' in Spanish

Is there any limitation with Arduino Nano serial communication distance?

Are Boeing 737-800’s grounded?

Pass By Reference VS Pass by Value

How to reduce LED flash rate (frequency)

Who is the Umpire in this picture?

Meaning of Bloch representation

Please, smoke with good manners

Why isn't the definition of absolute value applied when squaring a radical containing a variable?



Magento 2.2.5 - Unsupported image format on product detail page


How to gracefully handle image exceptions?Not able to add/update magento2 category post upgrade from 1.9 to 2.1.0Magento2.2.4 : Uninstall a theme throw exceptions?Magento 2.2.6 exceptionMagento2 REST API get all customers detailsDeleted ShipperHQ module causing error in “All Customers” section of Magento 2Unable to Serialize Value Magento 2.2.6“Area code is not set” in var/logGetting Errors after MySQL database importUnable to serialize value problem with Magento 2.2.6Magento 2: product image upload error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I am using Magento v2.2.5 and I am getting error on product detail page.



1 exception(s):
Exception #0 (Exception): Unsupported image format.

Exception #0 (Exception): Unsupported image format.
#0 /html/vendor/magento/framework/Image/Adapter/Gd2.php(68): MagentoFrameworkImageAdapterGd2->_getCallback('create')
#1 /html/vendor/magento/framework/Image.php(55): MagentoFrameworkImageAdapterGd2->open('/home/ma...')
#2 /html/vendor/magento/framework/Image.php(36): MagentoFrameworkImage->open()
#3 /html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): MagentoFrameworkImage->__construct(Object(MagentoFrameworkImageAdapterGd2), '/home/ma...')
#4 /html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Framewo...', Array)
#5 /html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Framewo...', Array)
#6 /html/vendor/magento/framework/Image/Factory.php(47): MagentoFrameworkObjectManagerObjectManager->create('Magento\Framewo...', Array)
#7 /html/vendor/magento/module-catalog/Model/Product/Image.php(467): MagentoFrameworkImageFactory->create('/home/ma...')
#8 /html/vendor/magento/module-catalog/Model/Product/Image.php(487): MagentoCatalogModelProductImage->getImageProcessor()
#9 /html/vendor/magento/module-catalog/Helper/Image.php(477): MagentoCatalogModelProductImage->resize()
#10 /html/vendor/magento/module-catalog/Helper/Image.php(551): MagentoCatalogHelperImage->applyScheduledActions()
#11 /html/vendor/magento/module-catalog/Block/Product/ImageBuilder.php(141): MagentoCatalogHelperImage->getResizedImageInfo()
#12 /html/vendor/magento/module-catalog/Block/Product/AbstractProduct.php(516): MagentoCatalogBlockProductImageBuilder->create()
#13 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogBlockProductAbstractProduct->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...', Array)
#14 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogBlockProductProductListUpsellInterceptor->___callParent('getImage', Array)
#15 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogBlockProductProductListUpsellInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#16 /html/generated/code/Magento/Catalog/Block/Product/ProductList/Upsell/Interceptor.php(26): MagentoCatalogBlockProductProductListUpsellInterceptor->___callPlugins('getImage', Array, Array)
#17 /html/vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml(193): MagentoCatalogBlockProductProductListUpsellInterceptor->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#18 /html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/ma...')
#19 /html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductProductListUpsellInterceptor), '/home/ma...', Array)
#20 /html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/home/ma...')
#21 /html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoFrameworkViewElementTemplate->_toHtml()
#22 /html/vendor/magento/framework/View/Layout.php(558): MagentoFrameworkViewElementAbstractBlock->toHtml()
#23 /html/vendor/magento/framework/View/Layout.php(534): MagentoFrameworkViewLayout->_renderBlock('product.info.up...')
#24 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.up...')
#25 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('product.info.up...', false)
#26 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('content.aside', false)
#27 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('content.aside')
#28 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('content.aside', false)
#29 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main', false)
#30 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#31 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main', false)
#32 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#33 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#34 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('columns', false)
#35 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#36 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#37 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main.content', false)
#38 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#39 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#40 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#41 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('root', false)
#42 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#43 /html/vendor/magento/framework/View/Layout.php(955): MagentoFrameworkViewLayout->renderElement('root')
#44 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#45 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#46 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#47 /html/generated/code/Magento/Framework/View/Layout/Interceptor.php(39): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#48 /html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
#49 /html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#50 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#51 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#52 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#53 /html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#54 /html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#55 /html/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#56 /html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#57 main









share|improve this question
























  • Can you load the raw image in question in your browser?

    – Borche Glafche
    Sep 27 '18 at 8:57











  • Try to compress your image and check the size of it .

    – Ylgen Guxholli
    Sep 27 '18 at 11:28











  • @YlgenGuxholli my image size is 19.2KB

    – Pradeep Sanku
    Sep 27 '18 at 11:54











  • @BorcheGlafche yes i can load that image in the broweser

    – Pradeep Sanku
    Sep 27 '18 at 11:55











  • Can you try to use ImageMagick instead. And can you share us the broken image

    – Franck Garnier
    Sep 27 '18 at 13:39

















1















I am using Magento v2.2.5 and I am getting error on product detail page.



1 exception(s):
Exception #0 (Exception): Unsupported image format.

Exception #0 (Exception): Unsupported image format.
#0 /html/vendor/magento/framework/Image/Adapter/Gd2.php(68): MagentoFrameworkImageAdapterGd2->_getCallback('create')
#1 /html/vendor/magento/framework/Image.php(55): MagentoFrameworkImageAdapterGd2->open('/home/ma...')
#2 /html/vendor/magento/framework/Image.php(36): MagentoFrameworkImage->open()
#3 /html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): MagentoFrameworkImage->__construct(Object(MagentoFrameworkImageAdapterGd2), '/home/ma...')
#4 /html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Framewo...', Array)
#5 /html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Framewo...', Array)
#6 /html/vendor/magento/framework/Image/Factory.php(47): MagentoFrameworkObjectManagerObjectManager->create('Magento\Framewo...', Array)
#7 /html/vendor/magento/module-catalog/Model/Product/Image.php(467): MagentoFrameworkImageFactory->create('/home/ma...')
#8 /html/vendor/magento/module-catalog/Model/Product/Image.php(487): MagentoCatalogModelProductImage->getImageProcessor()
#9 /html/vendor/magento/module-catalog/Helper/Image.php(477): MagentoCatalogModelProductImage->resize()
#10 /html/vendor/magento/module-catalog/Helper/Image.php(551): MagentoCatalogHelperImage->applyScheduledActions()
#11 /html/vendor/magento/module-catalog/Block/Product/ImageBuilder.php(141): MagentoCatalogHelperImage->getResizedImageInfo()
#12 /html/vendor/magento/module-catalog/Block/Product/AbstractProduct.php(516): MagentoCatalogBlockProductImageBuilder->create()
#13 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogBlockProductAbstractProduct->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...', Array)
#14 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogBlockProductProductListUpsellInterceptor->___callParent('getImage', Array)
#15 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogBlockProductProductListUpsellInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#16 /html/generated/code/Magento/Catalog/Block/Product/ProductList/Upsell/Interceptor.php(26): MagentoCatalogBlockProductProductListUpsellInterceptor->___callPlugins('getImage', Array, Array)
#17 /html/vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml(193): MagentoCatalogBlockProductProductListUpsellInterceptor->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#18 /html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/ma...')
#19 /html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductProductListUpsellInterceptor), '/home/ma...', Array)
#20 /html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/home/ma...')
#21 /html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoFrameworkViewElementTemplate->_toHtml()
#22 /html/vendor/magento/framework/View/Layout.php(558): MagentoFrameworkViewElementAbstractBlock->toHtml()
#23 /html/vendor/magento/framework/View/Layout.php(534): MagentoFrameworkViewLayout->_renderBlock('product.info.up...')
#24 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.up...')
#25 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('product.info.up...', false)
#26 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('content.aside', false)
#27 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('content.aside')
#28 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('content.aside', false)
#29 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main', false)
#30 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#31 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main', false)
#32 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#33 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#34 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('columns', false)
#35 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#36 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#37 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main.content', false)
#38 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#39 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#40 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#41 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('root', false)
#42 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#43 /html/vendor/magento/framework/View/Layout.php(955): MagentoFrameworkViewLayout->renderElement('root')
#44 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#45 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#46 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#47 /html/generated/code/Magento/Framework/View/Layout/Interceptor.php(39): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#48 /html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
#49 /html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#50 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#51 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#52 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#53 /html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#54 /html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#55 /html/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#56 /html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#57 main









share|improve this question
























  • Can you load the raw image in question in your browser?

    – Borche Glafche
    Sep 27 '18 at 8:57











  • Try to compress your image and check the size of it .

    – Ylgen Guxholli
    Sep 27 '18 at 11:28











  • @YlgenGuxholli my image size is 19.2KB

    – Pradeep Sanku
    Sep 27 '18 at 11:54











  • @BorcheGlafche yes i can load that image in the broweser

    – Pradeep Sanku
    Sep 27 '18 at 11:55











  • Can you try to use ImageMagick instead. And can you share us the broken image

    – Franck Garnier
    Sep 27 '18 at 13:39













1












1








1


1






I am using Magento v2.2.5 and I am getting error on product detail page.



1 exception(s):
Exception #0 (Exception): Unsupported image format.

Exception #0 (Exception): Unsupported image format.
#0 /html/vendor/magento/framework/Image/Adapter/Gd2.php(68): MagentoFrameworkImageAdapterGd2->_getCallback('create')
#1 /html/vendor/magento/framework/Image.php(55): MagentoFrameworkImageAdapterGd2->open('/home/ma...')
#2 /html/vendor/magento/framework/Image.php(36): MagentoFrameworkImage->open()
#3 /html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): MagentoFrameworkImage->__construct(Object(MagentoFrameworkImageAdapterGd2), '/home/ma...')
#4 /html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Framewo...', Array)
#5 /html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Framewo...', Array)
#6 /html/vendor/magento/framework/Image/Factory.php(47): MagentoFrameworkObjectManagerObjectManager->create('Magento\Framewo...', Array)
#7 /html/vendor/magento/module-catalog/Model/Product/Image.php(467): MagentoFrameworkImageFactory->create('/home/ma...')
#8 /html/vendor/magento/module-catalog/Model/Product/Image.php(487): MagentoCatalogModelProductImage->getImageProcessor()
#9 /html/vendor/magento/module-catalog/Helper/Image.php(477): MagentoCatalogModelProductImage->resize()
#10 /html/vendor/magento/module-catalog/Helper/Image.php(551): MagentoCatalogHelperImage->applyScheduledActions()
#11 /html/vendor/magento/module-catalog/Block/Product/ImageBuilder.php(141): MagentoCatalogHelperImage->getResizedImageInfo()
#12 /html/vendor/magento/module-catalog/Block/Product/AbstractProduct.php(516): MagentoCatalogBlockProductImageBuilder->create()
#13 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogBlockProductAbstractProduct->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...', Array)
#14 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogBlockProductProductListUpsellInterceptor->___callParent('getImage', Array)
#15 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogBlockProductProductListUpsellInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#16 /html/generated/code/Magento/Catalog/Block/Product/ProductList/Upsell/Interceptor.php(26): MagentoCatalogBlockProductProductListUpsellInterceptor->___callPlugins('getImage', Array, Array)
#17 /html/vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml(193): MagentoCatalogBlockProductProductListUpsellInterceptor->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#18 /html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/ma...')
#19 /html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductProductListUpsellInterceptor), '/home/ma...', Array)
#20 /html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/home/ma...')
#21 /html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoFrameworkViewElementTemplate->_toHtml()
#22 /html/vendor/magento/framework/View/Layout.php(558): MagentoFrameworkViewElementAbstractBlock->toHtml()
#23 /html/vendor/magento/framework/View/Layout.php(534): MagentoFrameworkViewLayout->_renderBlock('product.info.up...')
#24 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.up...')
#25 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('product.info.up...', false)
#26 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('content.aside', false)
#27 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('content.aside')
#28 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('content.aside', false)
#29 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main', false)
#30 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#31 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main', false)
#32 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#33 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#34 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('columns', false)
#35 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#36 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#37 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main.content', false)
#38 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#39 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#40 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#41 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('root', false)
#42 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#43 /html/vendor/magento/framework/View/Layout.php(955): MagentoFrameworkViewLayout->renderElement('root')
#44 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#45 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#46 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#47 /html/generated/code/Magento/Framework/View/Layout/Interceptor.php(39): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#48 /html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
#49 /html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#50 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#51 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#52 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#53 /html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#54 /html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#55 /html/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#56 /html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#57 main









share|improve this question
















I am using Magento v2.2.5 and I am getting error on product detail page.



1 exception(s):
Exception #0 (Exception): Unsupported image format.

Exception #0 (Exception): Unsupported image format.
#0 /html/vendor/magento/framework/Image/Adapter/Gd2.php(68): MagentoFrameworkImageAdapterGd2->_getCallback('create')
#1 /html/vendor/magento/framework/Image.php(55): MagentoFrameworkImageAdapterGd2->open('/home/ma...')
#2 /html/vendor/magento/framework/Image.php(36): MagentoFrameworkImage->open()
#3 /html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): MagentoFrameworkImage->__construct(Object(MagentoFrameworkImageAdapterGd2), '/home/ma...')
#4 /html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Framewo...', Array)
#5 /html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Framewo...', Array)
#6 /html/vendor/magento/framework/Image/Factory.php(47): MagentoFrameworkObjectManagerObjectManager->create('Magento\Framewo...', Array)
#7 /html/vendor/magento/module-catalog/Model/Product/Image.php(467): MagentoFrameworkImageFactory->create('/home/ma...')
#8 /html/vendor/magento/module-catalog/Model/Product/Image.php(487): MagentoCatalogModelProductImage->getImageProcessor()
#9 /html/vendor/magento/module-catalog/Helper/Image.php(477): MagentoCatalogModelProductImage->resize()
#10 /html/vendor/magento/module-catalog/Helper/Image.php(551): MagentoCatalogHelperImage->applyScheduledActions()
#11 /html/vendor/magento/module-catalog/Block/Product/ImageBuilder.php(141): MagentoCatalogHelperImage->getResizedImageInfo()
#12 /html/vendor/magento/module-catalog/Block/Product/AbstractProduct.php(516): MagentoCatalogBlockProductImageBuilder->create()
#13 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogBlockProductAbstractProduct->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...', Array)
#14 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogBlockProductProductListUpsellInterceptor->___callParent('getImage', Array)
#15 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogBlockProductProductListUpsellInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#16 /html/generated/code/Magento/Catalog/Block/Product/ProductList/Upsell/Interceptor.php(26): MagentoCatalogBlockProductProductListUpsellInterceptor->___callPlugins('getImage', Array, Array)
#17 /html/vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml(193): MagentoCatalogBlockProductProductListUpsellInterceptor->getImage(Object(MagentoCatalogModelProductInterceptor), 'upsell_products...')
#18 /html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/ma...')
#19 /html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductProductListUpsellInterceptor), '/home/ma...', Array)
#20 /html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/home/ma...')
#21 /html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoFrameworkViewElementTemplate->_toHtml()
#22 /html/vendor/magento/framework/View/Layout.php(558): MagentoFrameworkViewElementAbstractBlock->toHtml()
#23 /html/vendor/magento/framework/View/Layout.php(534): MagentoFrameworkViewLayout->_renderBlock('product.info.up...')
#24 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.up...')
#25 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('product.info.up...', false)
#26 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('content.aside', false)
#27 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('content.aside')
#28 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('content.aside', false)
#29 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main', false)
#30 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#31 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main', false)
#32 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#33 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#34 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('columns', false)
#35 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#36 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#37 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('main.content', false)
#38 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#39 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#40 /html/vendor/magento/framework/View/Layout.php(586): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#41 /html/vendor/magento/framework/View/Layout.php(536): MagentoFrameworkViewLayout->_renderContainer('root', false)
#42 /html/vendor/magento/framework/View/Layout.php(489): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#43 /html/vendor/magento/framework/View/Layout.php(955): MagentoFrameworkViewLayout->renderElement('root')
#44 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#45 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#46 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#47 /html/generated/code/Magento/Framework/View/Layout/Interceptor.php(39): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#48 /html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
#49 /html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#50 /html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#51 /html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#52 /html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#53 /html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#54 /html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#55 /html/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#56 /html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#57 main






magento2 product-images product-view






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 27 '18 at 11:51









Abi Sharma

589




589










asked Sep 27 '18 at 8:44









Pradeep SankuPradeep Sanku

7,93913158




7,93913158












  • Can you load the raw image in question in your browser?

    – Borche Glafche
    Sep 27 '18 at 8:57











  • Try to compress your image and check the size of it .

    – Ylgen Guxholli
    Sep 27 '18 at 11:28











  • @YlgenGuxholli my image size is 19.2KB

    – Pradeep Sanku
    Sep 27 '18 at 11:54











  • @BorcheGlafche yes i can load that image in the broweser

    – Pradeep Sanku
    Sep 27 '18 at 11:55











  • Can you try to use ImageMagick instead. And can you share us the broken image

    – Franck Garnier
    Sep 27 '18 at 13:39

















  • Can you load the raw image in question in your browser?

    – Borche Glafche
    Sep 27 '18 at 8:57











  • Try to compress your image and check the size of it .

    – Ylgen Guxholli
    Sep 27 '18 at 11:28











  • @YlgenGuxholli my image size is 19.2KB

    – Pradeep Sanku
    Sep 27 '18 at 11:54











  • @BorcheGlafche yes i can load that image in the broweser

    – Pradeep Sanku
    Sep 27 '18 at 11:55











  • Can you try to use ImageMagick instead. And can you share us the broken image

    – Franck Garnier
    Sep 27 '18 at 13:39
















Can you load the raw image in question in your browser?

– Borche Glafche
Sep 27 '18 at 8:57





Can you load the raw image in question in your browser?

– Borche Glafche
Sep 27 '18 at 8:57













Try to compress your image and check the size of it .

– Ylgen Guxholli
Sep 27 '18 at 11:28





Try to compress your image and check the size of it .

– Ylgen Guxholli
Sep 27 '18 at 11:28













@YlgenGuxholli my image size is 19.2KB

– Pradeep Sanku
Sep 27 '18 at 11:54





@YlgenGuxholli my image size is 19.2KB

– Pradeep Sanku
Sep 27 '18 at 11:54













@BorcheGlafche yes i can load that image in the broweser

– Pradeep Sanku
Sep 27 '18 at 11:55





@BorcheGlafche yes i can load that image in the broweser

– Pradeep Sanku
Sep 27 '18 at 11:55













Can you try to use ImageMagick instead. And can you share us the broken image

– Franck Garnier
Sep 27 '18 at 13:39





Can you try to use ImageMagick instead. And can you share us the broken image

– Franck Garnier
Sep 27 '18 at 13:39










1 Answer
1






active

oldest

votes


















0














The file types supported by Magento 2 GD2 :



 /**
* Image output callbacks by type
*
* @var array
*/
private static $_callbacks = [
IMAGETYPE_GIF => ['output' => 'imagegif', 'create' => 'imagecreatefromgif'],
IMAGETYPE_JPEG => ['output' => 'imagejpeg', 'create' => 'imagecreatefromjpeg'],
IMAGETYPE_PNG => ['output' => 'imagepng', 'create' => 'imagecreatefrompng'],
IMAGETYPE_XBM => ['output' => 'imagexbm', 'create' => 'imagecreatefromxbm'],
IMAGETYPE_WBMP => ['output' => 'imagewbmp', 'create' => 'imagecreatefromxbm'],
];





share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f244069%2fmagento-2-2-5-unsupported-image-format-on-product-detail-page%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The file types supported by Magento 2 GD2 :



     /**
    * Image output callbacks by type
    *
    * @var array
    */
    private static $_callbacks = [
    IMAGETYPE_GIF => ['output' => 'imagegif', 'create' => 'imagecreatefromgif'],
    IMAGETYPE_JPEG => ['output' => 'imagejpeg', 'create' => 'imagecreatefromjpeg'],
    IMAGETYPE_PNG => ['output' => 'imagepng', 'create' => 'imagecreatefrompng'],
    IMAGETYPE_XBM => ['output' => 'imagexbm', 'create' => 'imagecreatefromxbm'],
    IMAGETYPE_WBMP => ['output' => 'imagewbmp', 'create' => 'imagecreatefromxbm'],
    ];





    share|improve this answer



























      0














      The file types supported by Magento 2 GD2 :



       /**
      * Image output callbacks by type
      *
      * @var array
      */
      private static $_callbacks = [
      IMAGETYPE_GIF => ['output' => 'imagegif', 'create' => 'imagecreatefromgif'],
      IMAGETYPE_JPEG => ['output' => 'imagejpeg', 'create' => 'imagecreatefromjpeg'],
      IMAGETYPE_PNG => ['output' => 'imagepng', 'create' => 'imagecreatefrompng'],
      IMAGETYPE_XBM => ['output' => 'imagexbm', 'create' => 'imagecreatefromxbm'],
      IMAGETYPE_WBMP => ['output' => 'imagewbmp', 'create' => 'imagecreatefromxbm'],
      ];





      share|improve this answer

























        0












        0








        0







        The file types supported by Magento 2 GD2 :



         /**
        * Image output callbacks by type
        *
        * @var array
        */
        private static $_callbacks = [
        IMAGETYPE_GIF => ['output' => 'imagegif', 'create' => 'imagecreatefromgif'],
        IMAGETYPE_JPEG => ['output' => 'imagejpeg', 'create' => 'imagecreatefromjpeg'],
        IMAGETYPE_PNG => ['output' => 'imagepng', 'create' => 'imagecreatefrompng'],
        IMAGETYPE_XBM => ['output' => 'imagexbm', 'create' => 'imagecreatefromxbm'],
        IMAGETYPE_WBMP => ['output' => 'imagewbmp', 'create' => 'imagecreatefromxbm'],
        ];





        share|improve this answer













        The file types supported by Magento 2 GD2 :



         /**
        * Image output callbacks by type
        *
        * @var array
        */
        private static $_callbacks = [
        IMAGETYPE_GIF => ['output' => 'imagegif', 'create' => 'imagecreatefromgif'],
        IMAGETYPE_JPEG => ['output' => 'imagejpeg', 'create' => 'imagecreatefromjpeg'],
        IMAGETYPE_PNG => ['output' => 'imagepng', 'create' => 'imagecreatefrompng'],
        IMAGETYPE_XBM => ['output' => 'imagexbm', 'create' => 'imagecreatefromxbm'],
        IMAGETYPE_WBMP => ['output' => 'imagewbmp', 'create' => 'imagecreatefromxbm'],
        ];






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 27 '18 at 13:49









        Franck GarnierFranck Garnier

        2,096926




        2,096926



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f244069%2fmagento-2-2-5-unsupported-image-format-on-product-detail-page%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            419 nièngy_Soadمي 19bal1.5o_g

            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB