GD Library installed, jpg enabled, no images

  • Posts: 2
  • Thank you received: 0
10 years 3 months ago #200612

-- HikaShop version -- : HikaShop Starter 2.4.0, Joomla!® Online Shop System
-- Joomla version -- : Joomla! 2.5.28
-- PHP version -- : 5.3.14
-- Browser(s) name and version -- : Chrome 42.0.2311.135 m
-- Error-message(debug-mod must be tuned on) -- : The GD library for thumbnails creation is installed and activated on your website. However, it is not configured to support "jpg " 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: jpg

Prior to importing my .csv file, i uploaded all relevant images having a .jpg extension to /images/com_hikashop/upload/ folder. GD library is installed:

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XPM Support enabled
XBM Support enabled

the column headings i'm using are:

product_code | product_name | product_description | product_quantity | product_weight_unit |price_value | images

Under the "images" column i listed the xxxxxx.jpg name corresponding to each product... All other information was imported correctly without errors.

All products were imported successfully but no images appear in the backend products list or individual product information.

What did i do wrong?

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
10 years 3 months ago #200624

Hi,

This error will appear if HikaShop doesn't find a valid handler for a file extension. As you can see in your error message, it is looking for a file handler for the extension "jpg ".
That file extension doesn't exist.
This indicates that you've added an extra space at the end of the images filename in your CSV. Remove it, reimport and it will work.

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

  • Posts: 2
  • Thank you received: 0
10 years 3 months ago #200659

thank you very much for the quick response and the exactly correct answer!

i performed a search/replace on my image filenames and within the .csv file and replaced all the extensions to make sure no spaces existed and then reuploaded the images and and reimported the .csv file after deleting the original files from joomla.

Voila! all my images appear in both the backend product listing and the frontend showcase!

Thank you!

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

  • Posts: 1
  • Thank you received: 0
  • Hikashop Essential
18 hours 34 minutes ago #368231

Hello NIcolas,

although this thread is very old I experience the same problem today:

For some pics I want to upload there are error messages (funny because all pics have roughly same size and resolution).

Error message (german version) says file (=picture) is too big which is absolutely not possible (ca. 1-3 MB, server set to maximum size = php 253 MB).
Error message (english version) says GD does not support "" files - in my files are no "" or spaces in the file endings.

WHat to do?

Thanks

Rolf

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
16 hours 25 minutes ago #368233

Hi,

It is not the size in MB of the file which is the problem. It's the size height*width (the resolution if you will) of the image itself which is.
When GD ( the image library of PHP) loads the image in memory, it needs 8bits for each pixel.
Suppose you have a JPG image all white of 10000*10000 pixels. Its file size will be small because the JPG format will be able to compress it a lot. However, GD will roughly require 10000*10000*8 = 800 000 000 bits, or 800megabits, easily going over your PHP memory limit.
The fact that you're saying that the images are roughly the same size and that it works for some and not others would indicate that your images are not far from the threshold in terms of memory usage. So, increasing the memory_limit to 500M in your php.ini should help.

Now, this error message comes from HikaShop, as it does a check before asking GD to actually load the image.
The check is not accurate because there is no function in PHP to know the required memory for something before actually doing it.
So, what you can also do is to go in your PHPMyAdmin and open the hikashop_config table. There, add an entry with the namekey image_check_memory and the value 0
The check will be skipped when you try again. If it works, then the check is too heavy handed. If it doesn't, then you should now see the error message from PHP saying that you don't have enough memory.

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

Time to create page: 0.226 seconds
Powered by Kunena Forum