Forums / Customization from the Admin / Large image display problem

Large image display problem

Locked

Started by raina on 9 Aug 2007, 9:04 PM · Views: 7,611

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Aug 2007, 9:04 PM
#1
raina avatar

raina

New Zenner

Join Date:
Jun 2007
Location:
Coffs Harbour, NSW, Australia
Posts:
7
Plugin Contributions:
0

Large image display problem

I am having problems with getting the large images to display at the correct size. I have read the image preparation how-to and I have

  • the _LGE images all set to 500x500 in the images/large/ folder, and
  • medium images (250x250) in the images/medium folder.
  • Large images are named filename_LGE.jpg, medium filename_MED.jpg and small filename.jpg.
    I have set the image size in admin so product info is 250x250 and product listing is 125x125.

I modified the javascript in includes/modules/pages/product_info/jscript_main.php to this:

function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=500,screenX=150,screenY=150,top=150,left=150')
}
function popupWindowPrice(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
}


All is working fine except for the popup window. When it pops up, it starts at 500x500 and then resizes itself to a small size.

It can be seen at http://www.erskinedental.com.au/store/ (this system is not live yet)

What am I missing? Any help would be very appreciated.

10 Aug 2007, 12:41 AM
#2
jettrue avatar

jettrue

Totally Zenned

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

Re: Large image display problem

Raina:

I am having problems with getting the large images to display at the correct size. I have read the image preparation how-to and I have

  • the _LGE images all set to 500x500 in the images/large/ folder, and
  • medium images (250x250) in the images/medium folder.
  • Large images are named filename_LGE.jpg, medium filename_MED.jpg and small filename.jpg.
    I have set the image size in admin so product info is 250x250 and product listing is 125x125.

I modified the javascript in includes/modules/pages/product_info/jscript_main.php to this:

function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=500,screenX=150,screenY=150,top=150,left=150')
}
function popupWindowPrice(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
}


All is working fine except for the popup window. When it pops up, it starts at 500x500 and then resizes itself to a small size.

It can be seen at http://www.erskinedental.com.au/store/ (this system is not live yet)

What am I missing? Any help would be very appreciated.
under "Configuration", "Images", what do you have listed for "Product Info - Image Large Suffix"

By default it is _LRG NOT _LGE

Change it to _LGE if that is your preference.

10 Aug 2007, 8:17 AM
#3
raina avatar

raina

New Zenner

Join Date:
Jun 2007
Location:
Coffs Harbour, NSW, Australia
Posts:
7
Plugin Contributions:
0

Re: Large image display problem

Hi Jade ...

Thanks for picking that up ... I did have _LGE as my suffix on the actual images, and I've now changed it in images admin however I seem to have the same problem - it shows the large window initially then resizes to smaller (with a smaller image).

I have the following settings:
Small Image Width 125
Small Image Height 125
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 75
Subcategory Image Height 75
Calculate Image Size false
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 75
Image - Shopping Cart Height 75
Category Icon Image Width - Product Info Pages 50
Category Icon Image Height - Product Info Pages 50
Top Subcategory Image Width 125
Top Subcategory Image Height 125
Product Info - Image Width 250
Product Info - Image Height 250
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LGE
Product Info - Number of Additional Images per Row 3
Image - Product Listing Width 125
Image - Product Listing Height 125
Image - Product New Listing Width 125
Image - Product New Listing Height 125
Image - New Products Width 125
Image - New Products Height 125
Image - Featured Products Width 100
Image - Featured Products Height 80
Image - Product All Listing Width 125
Image - Product All Listing Height 125
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1

Still not sure what is happening?

10 Aug 2007, 10:02 PM
#4
raina avatar

raina

New Zenner

Join Date:
Jun 2007
Location:
Coffs Harbour, NSW, Australia
Posts:
7
Plugin Contributions:
0

Re: Large image display problem

OK, I got the window resizing at the right size (edited the pages/popup_image/jscript_main.php file) ...

but still having the problem. The right image (_LGE) file is showing, but it's resizing to 125x125 which makes me think it's something in admin thats setting it ...

I can't see any dimensions in the images admin that resize large images, though? any help would be appreciated,

Raina

10 Aug 2007, 10:13 PM
#5
raina avatar

raina

New Zenner

Join Date:
Jun 2007
Location:
Coffs Harbour, NSW, Australia
Posts:
7
Plugin Contributions:
0

Re: Large image display problem

10 minutes after posting that, I found that changing the setting
"Image - Use Proportional Images on Products and Categories" to false fixed the problem ... which seems illogical, but it works, so I'm not going to worry about it :)

Thanks again for your help Jade.

Raina

29 Aug 2009, 2:09 AM
#6
jmendoza avatar

jmendoza

New Zenner

Join Date:
Aug 2009
Posts:
1
Plugin Contributions:
0

Re: Large image display problem

I had the same problem but it turned out the the jpeg file I uploaded was way to big. I needed to scale it down to the right size.