Guest Posted February 24, 2008 Posted February 24, 2008 On my client's store on the main page, within the New Products For February box, you can click on one of the items shown and you are taken to the product page for that item. On the product page, when you click on the image of the item to enlarge it another page pops up with the image enlarged to something in the neighborhood of 1900px x 1900px or larger. Does anyone know where or how I can set the image size to something more reasonable? TIA, Dave
bpopelar Posted February 24, 2008 Posted February 24, 2008 On my client's store on the main page, within the New Products For February box, you can click on one of the items shown and you are taken to the product page for that item. On the product page, when you click on the image of the item to enlarge it another page pops up with the image enlarged to something in the neighborhood of 1900px x 1900px or larger. Does anyone know where or how I can set the image size to something more reasonable? TIA, Dave Dave, popup_image.php will display an image at whatever size it happens to be. You are getting a 1900x1900 image because thats what size it is. To the best of my knowledge, osCommerce does not define a max image size parameter; however, you can easily change popup_image.php to set a maximum size. There might even be a contribution that already does it. Search the contributions and see what turns up. Ben
Guest Posted February 24, 2008 Posted February 24, 2008 Ben, Thanks for the info. Dave, popup_image.php will display an image at whatever size it happens to be. You are getting a 1900x1900 image because thats what size it is. To the best of my knowledge, osCommerce does not define a max image size parameter; however, you can easily change popup_image.php to set a maximum size. There might even be a contribution that already does it. Search the contributions and see what turns up. Ben I edited the javascript function resize() in popup_image.php from: <script language="javascript"><!-- var i=0; function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width + 30, document.images[0].height+60-i); self.focus(); } //--></script> to <script language="javascript"><!-- var i=0; function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width*.25, document.images[0].height*.25); self.focus(); } //--></script> thinking that would reduce the popup image size. Wrong!! It reduced the size of the popup window, NOT the size of the image within the popup window. I guess I'll have to resize each and every image. Bummer! This extra work that I'm facing doesn't negate my appreciation for your help. Dave
satish Posted February 24, 2008 Posted February 24, 2008 Use on the fly thumbnailer and apply when goign for large image. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Guest Posted February 24, 2008 Posted February 24, 2008 Satish, Use on the fly thumbnailer and apply when goign for large image. Satish Could you/would you put that in simple (simplier) English for me? I'm not sure what you mean by 'on the fly thumbnailer'. Thanks, Dave
bpopelar Posted February 25, 2008 Posted February 25, 2008 Satish,Could you/would you put that in simple (simplier) English for me? I'm not sure what you mean by 'on the fly thumbnailer'. Thanks, Dave He is talking about this contribution. I just installed it and can recommend it. It will speed up the loading of the main pages given the size of your images. Satish is recommending that after you install it, you can also use it in popup_image.php to display properly scaled and sized popup images. Ben
Guest Posted February 25, 2008 Posted February 25, 2008 Ben, Thanks for the clarification. When I went to that contribution, there is a list of items dating from July 04 to Feb 08 (titled Default Image Bug). Am I correct in thinking that I want to download the latest item? Dave
bpopelar Posted February 25, 2008 Posted February 25, 2008 Ben, Thanks for the clarification. When I went to that contribution, there is a list of items dating from July 04 to Feb 08 (titled Default Image Bug). Am I correct in thinking that I want to download the latest item? Dave Dave, The latest version is not necessarily what you want to use. I'm using the 26 Sept 2007 version on my site. I don't display manufacturer pages, so I didn't need the 8 Oct 2007 fix and I didn't need / like the enhancements provided by the later postings. Ben
Recommended Posts
Archived
This topic is now archived and is closed to further replies.