Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Which addon do I need for resize of pop-up image?


jpuckettahi

Recommended Posts

I've installed/built an osc shop for a client, I'm sure they're going to upload massive images at times. Is there a way to resize those images on upload? Or, resize them in popup_image.php? But not just controlling the size attributes in the html, resizing as the thumbsnails are. Am I just missing something?

Link to comment
Share on other sites

I've installed/built an osc shop for a client, I'm sure they're going to upload massive images at times. Is there a way to resize those images on upload? Or, resize them in popup_image.php? But not just controlling the size attributes in the html, resizing as the thumbsnails are. Am I just missing something?

 

I'm about to install On the Fly Auto Thumbnailer because it looks like the best of the image thumnailers out there. Give that one a try.

 

(Note: your clients need the GD library installed in order for this and other server-based thumbnailing contribs to work. This is a compile-time option for PHP and should be included by any hosting provider worth its salt, but it never hurts to check.)

 

(Note 2: the documentation for this contribution is truly exceptional. If the authors are out there and reading this, thanks for doing this right!)

I say not to you, "backup your files before you change them." I say, rather, "use Subversion, and never worry about ruining your files again."

Link to comment
Share on other sites

Installation went smoothly, and the contrib works like a charm. Highly recommended!

I say not to you, "backup your files before you change them." I say, rather, "use Subversion, and never worry about ruining your files again."

Link to comment
Share on other sites

To resize a pop-up resize image,

I do editing file "/catalog/popup_images.php"

by changing document.images[0].height+60-i to

document.images[0].height+120-i at the line below

 

if (document.images[0]) window.resizeTo(document.images[0].width +30,document.images[0].height+120-i);
Edited by tpRobinTh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...