[Skip to main content](#vessel-content)

#   Getting an error when inserting a .png image

##

- **[FAkbari](/forum/user/41184-fakbari "View FAkbari's Profile")**
- [![FAkbari's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41184-fakbari "View FAkbari's Profile") Topic Author
- [ Offline](/forum/user/41184-fakbari)

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 7 months ago [\#234073](#234073) by [FAkbari](/forum/user/41184-fakbari "View FAkbari's Profile")  *[Getting an error when inserting a .png image](/forum/26-product-category-display/883296-getting-an-error-when-inserting-a-png-image#234073 "-- HikaShop version -- : Latest -- Joomla version -- : 3.5.0 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome Latest -- Error-message(debug-mod must be tuned on) -- : × Message  The GD library for thumbnails creation is installed and activated on your website. However, it is not configured to support &quot;png&quot; images. Please make sure that you're using a valid image extension and contact your hosting company or system administrator in order to make sure that the GD library on your web server supports the image extension: png  Hi there,  Today after updating my joomla to 3.5.0 we're receiving an error about .png file extension manily throught the backend of the site. I have commented the line of code below in administrator/components/com&#95;hikashop/helpers/image.php on line 905 if(function&#95;exists('ImageCreateFromPNG')) return ImageCreateFromPNG($image); Now I can add .png files into the website but they won't show in frontend of the site.  I have added different file type such as .jpg and they seems to be fine. But when I add .png images still getting that same error.  Cheers")* was created by *[FAkbari](/forum/user/41184-fakbari "View FAkbari's Profile")*

-- HikaShop version -- : Latest
-- Joomla version -- : 3.5.0
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome Latest
-- Error-message(debug-mod must be tuned on) -- : ×
Message

The GD library for thumbnails creation is installed and activated on your website. However, it is not configured to support "png" images. Please make sure that you're using a valid image extension and contact your hosting company or system administrator in order to make sure that the GD library on your web server supports the image extension: png

Hi there,

Today after updating my joomla to 3.5.0 we're receiving an error about .png file extension manily throught the backend of the site.
I have commented the line of code below in **administrator/components/com\_hikashop/helpers/image.php on line 905**
**if(function\_exists('ImageCreateFromPNG')) return ImageCreateFromPNG($image);**
Now I can add .png files into the website but they won't show in frontend of the site.

I have added different file type such as .jpg and they seems to be fine.
But when I add .png images still getting that same error.

Cheers

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODMyOTYtZ2V0dGluZy1hbi1lcnJvci13aGVuLWluc2VydGluZy1hLXBuZy1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 7 months ago [\#234076](#234076) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting an error when inserting a .png image](/forum/26-product-category-display/883296-getting-an-error-when-inserting-a-png-image#234076 "-- HikaShop version -- : Latest -- Joomla version -- : 3.5.0 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome Latest -- Error-message(debug-mod must be tuned on) -- : × Message  The GD library for thumbnails creation is installed and activated on your website. However, it is not configured to support &quot;png&quot; images. Please make sure that you're using a valid image extension and contact your hosting company or system administrator in order to make sure that the GD library on your web server supports the image extension: png  Hi there,  Today after updating my joomla to 3.5.0 we're receiving an error about .png file extension manily throught the backend of the site. I have commented the line of code below in administrator/components/com&#95;hikashop/helpers/image.php on line 905 if(function&#95;exists('ImageCreateFromPNG')) return ImageCreateFromPNG($image); Now I can add .png files into the website but they won't show in frontend of the site.  I have added different file type such as .jpg and they seems to be fine. But when I add .png images still getting that same error.  Cheers")*

Hi,

I don't see why updating Joomla would change anything.
The function ImageCreateFromPNG allows PHP to process PNG images.
That's provided by PHP, not Joomla.
If that function ImageCreateFromPNG doesn't exists, HikaShop cannot generate thumbnails out of png files.
That function is a standard function of GD so make sure that your server supports it or it won't work.
Commenting that line won't help as that function allows the system to convert the png format into a PHP image in memory and without it, the system won't be able to handle thumbnails of png files at all.

The following user(s) said Thank You: [FAkbari](/forum/user/41184-fakbari "View FAkbari's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODMyOTYtZ2V0dGluZy1hbi1lcnJvci13aGVuLWluc2VydGluZy1hLXBuZy1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.041 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
