Getting an error when inserting a .png image

  • Posts: 10
  • Thank you received: 0
9 years 5 months ago #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 "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 or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 5 months ago #234076

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum