Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Large Images are not displaying.

Large Images are not displaying.

Views: 1,675

Results 1 to 13 of 13
17 Dec 2011, 7:57 PM
#1
optician avatar

optician

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Large Images are not displaying.

Hi everyone,

We are having the issue to display large images.
I click on link "larger image" or on the image itself, the image is not displaying at all. The images are dipslaying only in product info.

I checked all the messages regarding displaying large images but I didn't find the problem.

version of Zen Cart: 1.3.0
Server OS: Linux
PHP Version: 4.4.9 (Zend: 1.3.0)
Database: MySQL 4.0.30-max-log
Above versions are taken from zencart admin page.
Also we have image handler 2.

The configuration of the images are following:

Title Value Action
Small Image Width 100
Small Image Height 80
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 100
Subcategory Image Height 57
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 50
Image - Shopping Cart Height 40
Category Icon Image Width - Product Info Pages 100
Category Icon Image Height - Product Info Pages 57
Product Info - Image Width 300
Product Info - Image Height 200
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 3
Image - Product Listing Width 150
Image - Product Listing Height 80
Image - Product New Listing Width 100
Image - Product New Listing Height 80
Image - New Products Width 100
Image - New Products Height 80
Image - Featured Products Width 100
Image - Featured Products Height 80
Image - Product All Listing Width 100
Image - Product All Listing Height 80
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images yes
IH small image filetype no_change
IH small image background 255:255:255
IH watermark small images no
IH zoom small images no
IH small image hotzone no
IH small image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark medium images no
IH zoom medium images no
IH medium image hotzone no
IH medium image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH watermark large images no
IH large image compression quality 85
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
IH zoom gravity SouthEast

Please let me know where the issue could be?

Thank you

17 Dec 2011, 8:48 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Large Images are not displaying.

A link to the site would make it much easier to figure out. And, you should REALLY consider some upgrades to Zen Cart, PHP, and MySQL.

17 Dec 2011, 9:04 PM
#3
optician avatar

optician

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Large Images are not displaying.

The large images are not displaying where product image displayed:
http://www.visualoptique.com/index.php?main_page=index&cPath=10_58

Also I am having a problem to display product info images:
http://www.visualoptique.com/index.php?main_page=index&cPath=10_22

Don't understand why it's not working.
It was working before.

I agree that I need to update version of zencart. I just need to fix the issue with the images first.

Thank you

17 Dec 2011, 9:42 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Large Images are not displaying.

First thing I would do is check the path to those images to make sure they exist. Internet Explorer is displaying the 'image not found' red x.

I know that some hacks that your old version is vulnerable to make changes in the images folder.

17 Dec 2011, 9:44 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Large Images are not displaying.

Steve makes a good point... Has your site been hacked?

17 Dec 2011, 10:02 PM
#6
optician avatar

optician

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Large Images are not displaying.

All the images are in the images directory.

Yes, the site was hacked.
I removed all the malwares that were mostly under images directory.

Currently I am actually trying to add additional product with the image, but the image is not displaying at all.

Under tools -> Image Handler -> there is Clear Image Cache.
Do I need to clear image cache? What also could be done?

Thank you

17 Dec 2011, 10:07 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Large Images are not displaying.

There could be a lot of reasons why this is happening, and as you say that the site was hacked, the number of possible reasons just grew by a huge factor.

It could be that the images directory is not writeable (CHMOD to 777)... and if your host helped you fix the hack (if it has indeed been fixed), they may have set the directory permissions to be far more strict.

But... there could be many reasons...

17 Dec 2011, 10:21 PM
#8
optician avatar

optician

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Large Images are not displaying.

I just checked the images folder properties.

Numberic Value is 705 (Only applicable on Unix hosts)

Owner:
Read, Write and Execute are checked

Group
Read, Write and Execute are not checked

World
Read and Execute are checked

Is it correct? Or everything should be checked and I have to have 777. Should all the subdirectories and files have 777?

Thank you

17 Dec 2011, 10:33 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Large Images are not displaying.

Owner: Read Write Execute

Group: Read Write

World: Read Write

This is 766 numerically. You may need 777, which is:

Owner: Read Write Execute

Group: Read Write Execute

World: Read Write Execute

BUT.... what we do is change the permissions to 766 (or 777) ONLY for a short while... ie: when we load new products vial the shop admin.

THEN... we change it back to 755. We do not leave it at 777, or 766.

And yes... if the images are being loaded in SUB folders inside the main images folder, then these too will need to have write permission levels (766).

Again, it is safer to chmod them all to 755 once you have loaded new products.

17 Dec 2011, 11:06 PM
#10
optician avatar

optician

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Large Images are not displaying.

Thank you
I will try to change the permission.
In case I will try to contact you again.

Thank you very much

18 Dec 2011, 12:46 AM
#11
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Large Images are not displaying.

Again, it is safer to chmod them all to 755 once you have loaded new products.

I've always had mine set at 755, and it has never interfered with adding new products.

22 Dec 2011, 8:14 PM
#12
optician avatar

optician

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Large Images are not displaying.

The permission is set to 705 for images folder.
I don't have any group, I am login as admin.
It could be that some file were missing or something else, because the site was hacked before. I even tried uninstall ImageHandler and install again ImageHandler 2. Actually when I was checking the files for ImageHandler the files were for version 1. Probably I would need to upgrade the website to the new version of the zen cart.

Also I created a new website and I installed ImageHandler 3. I used the lates version of the zencart. The images are displaying, but when I click on image itself to display large image than the same size of the image displaying.
What should I change to be able to see large images instead of small images when I click on larger image or on the image itself?
As I understand imagehandler should resize the image by itself.
Please let me know.

Thank you

23 Dec 2011, 11:32 AM
#13
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Large Images are not displaying.

  1. Folder permissions should be 755.

  2. Image Handler works (in general) off the SIZE of the image you load into the main images folder.

We generally load an image measuring:

Landscape = 850px x 650px
Portrait = 650px x 850px.

We use only jpg images.

We try to keep the filesize to about 100kb to 130kb and get an adequate level of compression using Photoshop.

Image handler will then be able to render the largest possible image at whatever dimension we have the original images at (eg: 850 x 650). Image handler can't take a thumbnail and make it bigger. Your largest possible size in IH will be the actual size of the main image.