Forums / Templates, Stylesheets, Page Layout / Large images not showing up

Large images not showing up

Locked

Views: 2,285

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Jun 2007, 7:39 AM
#1
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Large images not showing up

For some reason the large images on a clients site are not showing up at all. The medium images are showing and the small, but when you click on the image to show it larger the small image pops up.

I have tried installing image handler to hopefully fix this problem, but it is currently out of the question because it causes the site to appear as though there is a 300 px margin above the header, it is very weird.

This is the site link

Thanks for any help

10 Jun 2007, 9:22 AM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Large images not showing up

The image I tested had the suffix _lrg .

Check that the image suffix set in admin > configuration > images is NOT _LRG

And if you are NOT going to use IH, then you need to do some serious image optimisation. (even your large images are too big in terms of file size.)

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

11 Jun 2007, 12:46 PM
#3
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Re: Large images not showing up

On the admin side it is set to _lrg

What is the maximum size the files should be for large images? I have never had this problem before so I never really was concerned with image size.

I would LOVE to install image handler, but I cannot figure out why it is screwing up my template. UGH! Thanks for your help it is very much appreciated.

11 Jun 2007, 1:40 PM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Large images not showing up

I can't think of any reason why a large image should exceed 750x550pixels - this would ensure that it displays fully on even a 800x600 monitor. And a jpg of that size, correctly optimised, would probably be no more than around 65KB.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

11 Jun 2007, 1:58 PM
#5
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Large images not showing up

Odd thing is, your large image IS showing up, its just being constrained to 150 x 150. In the large image popup window, if I right click and choose "view image", the large one shows.

Is this what you have in includes/templates/YOUR_TEMPLATE/popup_image/tpl_main_page.php?

<?php
/**
 * Override Template for common/tpl_main_page.php
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_main_page.php 2993 2006-02-08 07:14:52Z birdbrain $
 */

?>
<body id="popupImage" class="centeredContent" onload="resize();">
<div>
<?php
  // $products_values->fields['products_image']
  echo '<a href="javascript:window.close()">' . zen_image($products_image_large, $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>

ETA: Your problem with image handler, was that you forgot to upload includes/templates/YOUR_TEMPLATE/jscript/jscript_imagehover.js

into your custom folder. When I view the source of your site, its showing it in TEMPLATE_DEFAULT??

21 Jun 2007, 1:14 PM
#6
refriend avatar

refriend

New Zenner

Join Date:
Aug 2005
Location:
Philadelphia, PA, USA
Posts:
28
Plugin Contributions:
0

Re: Large images not showing up

I am having the same problem as well... but not for all images.

The pop up to see the large image works, and the image is there... but the script to size the window and center the image only works some of the time.

For example...

Working Correctly: http://brasslinepro.com/index.php?main_page=product_info&cPath=2&products_id=130

Incorrectly: http://brasslinepro.com/index.php?main_page=product_info&cPath=2&products_id=133

I can't determine if it is the size or the shape of the image that is throwing off the routine.

21 Jun 2007, 3:38 PM
#7
refriend avatar

refriend

New Zenner

Join Date:
Aug 2005
Location:
Philadelphia, PA, USA
Posts:
28
Plugin Contributions:
0

Re: Large images not showing up

Well I found a great fix. Install zen_lightbox_1.3.

It smoothly integrates with Image Handler 2 and fixes the problem.