Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need Different picture for thumbnail


Dr_killer_UK

Recommended Posts

What i am "trying" to do is have the main product image as normal but have a separate image for the thumbnail that is actually the thumbnail size.

 

As default it takes the main image and resizes it for a thumbnail but its till the same physical file size that people have to load to see a thumbnail.

 

As i figure it, if i leave it "as is" people will have to load the full 400X300 pix image (about 22kb) to see the thumbnail, if it loaded a thumbnail sized image int he 1st place that would only be about 3kb people have to load.

 

Hope every one gets what I'm trying to achieve.

 

(this should be put into the next OSC version unless i'm totally wrong on how it works lol)

 

HELP!!!

 

Thanks

Jonny

Link to comment
Share on other sites

What i am "trying" to do is have the main product image as normal but have a separate image for the thumbnail that is actually the thumbnail size.

 

As default it takes the main image and resizes it for a thumbnail but its till the same physical file size that people have to load to see a thumbnail.

 

As i figure it, if i leave it "as is" people will have to load the full 400X300 pix image (about 22kb) to see the thumbnail, if it loaded a thumbnail sized image int he 1st place that would only be about 3kb people have to load.

 

Hope every one gets what I'm trying to achieve.

 

(this should be put into the next OSC version unless i'm totally wrong on how it works lol)

 

HELP!!!

 

Thanks

Jonny

Hi Jonny,

 

I have a possible solution for you to think about. On our website I've rewritten the tep_image function to call another image.php page. This page dynamically resizes the image to whatever size was originally called for in the tep_image function statement. This uses GD library function 'imagecopyresampled' to resize the image and then output a raw image file to the webpage. This allows you to have whatever size original, even something like 1200x1200 pix image, resized and then downloaded. I have some pictures that are 513K(or larger) and are resized to only 4K download. The full size picture is then available with just a mouse click.

 

Frank

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...