Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Auto-thumbnails, which contribution


leisurelarry80

Recommended Posts

Hello,

 

I have been researching image resizing functions. I am trying not to mod oscommerce if at all possible, but this is one definite mod that I need for loading speeds. There seems to be so many out there, so I compiled a list of the ones I could find.

 

I hope this is useful to someone to save them some time searching. I've placed the date of the last update as well as many will want to only focus on more recent updates.

 

Here's what I'm looking for:

- image must be resampled/resized. This already rules out a few listed below as some of them don't resize - they just add extra pictures

- mod should be easy to implement

 

Of those listed below, which one do you use or have you tried? How difficult was it to install? Do your recommend it?

 

 

GROUP A: DOES NOT RESAMPLE IMAGES

A1) Small, Medium, and Large Images 4/03/2003

 

Fast and easy way to allow medium and large images in a store. The store must be able to use FTP to upload the medium and large image. There is no recourse for missing images here. This is a down and dirty hack.

http://www.oscommerce.com/community/contributions,82

 

A2) Sm,Med,and Lg Images 8/5/2003

 

This contribution allows you to have 3 separate images for all products. A small image which is used on the homepage and in boxes, a medium images that is used on the product details page, and a large image that is used for the popup.

 

In addition, this contribution includes the ability to control medium and large images sizes from the admin control. The same way that small images are handled now.

http://www.oscommerce.com/community/contributions,695

 

 

GROUP B: RESAMPLES IMAGES

 

B1) Image resample 6/23/2003

 

Uses NetPBM to resample images to specified size automagically. The original image is preserved in case you want to change the size of the images in admin later.

 

The images are generated upon first request, so it won't make excessive load on your server. In my scenario this feature saves me 70-90% of imagefile size (and thereby time to download) and improves image quality over the browsers own scaling capabilites.

http://www.oscommerce.com/community/contributions,706

 

 

B2) Image_Resize 1.0 8/8/2003

 

What can it do:

- the uploaded image is copied into dirctory images_big/ below your image directory

- then a small image according to the images settings (Small Image Width, Small Image Heigth) in the admin is made and copied into your image directory

- the big image can be resized too

- if something goes wrong (no gd-lib) it copies the original file to the image directory

- It corrects wrong filenames in uploaded images (empty spaces, specialchars...)

- Three ways of resizing

http://www.oscommerce.com/community/contributions,350

 

B3) Automatic Thumbnail 8/26/2003

 

This is an automatic Thumbnail creator.

 

Each picture in your Shop will be chached in the "/catalog/images/imagecache" directory in the right

size and with the same name as the original.

The size is set in the Admin panel under Configuration - Images.

These values are the max values. The thumbnail will be created in the right proportions.

 

The tumbnail will be created an th first time the picture is call in the Shop.

Once an thumbnail is created it will always be used until you change the size in the Admin panel.

 

If you delete an image, you have also to delete the thumbnail in the "/catalog/images/imagecache" directory manually

http://www.oscommerce.com/community/contributions,1484

 

B4) Automatic Thumbnail Creator v1.0 7/12/2003

 

Automatically generates thumbnail jpg/png images (under new name) to the size defined in admin. Optionally will maintain

the original image proportions and centre the thumbnail on a backgound colour you set to suit your site.

Requirements GD >= 2.01, PHP >= 4.0.6 Works with osC 2.2 (uses the idea from netpbm contribution)

http://www.oscommerce.com/community/contributions,841

 

B5) PHP image resample 8/15/2002

 

Automatic image resample to all image sizes. With this function you need to add only one image (full size) to catalog and the thumbnail will be created with very good quality. You can even use diferent sizes for products pages, or manufactures logos. It needs *very* small changes in catalog/admin files. Read install.txt for full details.

http://www.oscommerce.com/community/contributions,260

 

Thanks for any input in advance!

 

LL

Link to comment
Share on other sites

That's some very nice research you've done there, and I'll probably do some actual testing when I get around to installing osCommerce myself shortly. I know that it isn't saying much, but as far as resampling goes, the NetPBM libraries are used by Gallery, (gallery.sf.net) another open source project I use. I can testify that the latest NetPBM libs work pretty swiftly, and don't mar images really. (I think a quality decision was made within the Gallery team.)

 

However, that is another project, sooo....YMMV ;)

Link to comment
Share on other sites

Thanks for the research on the mods - it's very helpful. I'm just getting into this stuff and need one of those, but I'm still not certain which one. Any advice others can provide is also appreciated!

 

Thanks again for the research.

Link to comment
Share on other sites

Thanks for the feedback JJ! I am guessing with the latest release there may need to be some slight changes (as that contribution has not been touched since august of last year), but hopefully it is fairly simple. Would be great for anyone else who has used these to say if it's working for them. I was a bit surprised that OSC does not have an inherent support for resampling pictures into thumbnails in their cart, but I guess it goes hand in hand with trying to be as compatible as possible.

 

LL

Link to comment
Share on other sites

I am guessing with the latest release there may need to be some slight changes (as that contribution has not been touched since august of last year), but hopefully it is fairly simple.

In that case, you're guessing wrong ;) It worked great with 2.2 Milestone 2

 

I was a bit surprised that OSC does not have an inherent support for resampling pictures into thumbnails in their cart, but I guess it goes hand in hand with trying to be as compatible as possible.

You can have both, it just takes a little more time to develop. I really hope it can be implemented in future releases.

 

-jj

Link to comment
Share on other sites

Hi all,

 

I just installed 'B3) Automatic Thumbnail 8/26/2003'

 

this is easy to install - just changes in one file - and it "seemed" to work perfect first.

Actually, the resizing thing does work perfect - but somehow the contrib kills the width and height tags of other images like buttons and placeholders... :o

 

I just noticed this by chance, because I have a placeholder (image_trans.gif) put in my header which disappeared after the installation. So I checked the source code.

 

Below are some lines from my source code without "Automatic Thumbnail" [1] (correct), and with "Automatic Thumbnail" [2] (incorrect or missing width/height tags)

 

[1]<img src="images/pixel_trans.gif" border="0" alt="" width="35" height="1">
[2]<img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1">

[1]<img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14">
[2]<img src="images/pixel_trans.gif" border="0" alt="" width="11" height="11">

[1]<img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1">
[2]<img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1">

[1]<img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10">
[2]<img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1">

[1]<img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14">
[2]<img src="images/infobox/corner_left.gif" border="0" alt="">

[1]<img src="images/pointer_blue_light.gif" border="0" alt="" width="8" height="7">
[2]<img src="images/pointer_blue_light.gif" border="0" alt="">

[1]<img src="images/infobox/arrow_right.gif" border="0" alt="Zeige mehr" title=" Zeige mehr " width="12" height="10">
[2]<img src="images/infobox/arrow_right.gif" border="0" alt="Zeige mehr" title=" Zeige mehr ">

[1]<img src="images/table_background_default.gif" border="0" alt="" width="57" height="40">
[2]<img src="images/table_background_default.gif" border="0" alt="" width="40" height="40">

 

all pixel_trans.gif's changed to 1x1 or 11x11, other graphics have wrong or missing tags... :angry:

 

I have just posted this to the german forum and wait for answers, if I can't solve this by the weekend I might have to try another contrib.

 

Btw., I think it's a good idea to have this survey, it's much easier to compare different similar contribs, if people tell their experience in one thread to look for than check out all the contribs, thanks for this.

 

mad

Link to comment
Share on other sites

Hey I was just here looking for some help for my store and one of the things I had planned to do was figure out a way to make it use the GD module for smaller thumbnail size and low and behold I see some people have already done that YEAH!! :) Anyway, This is for Leisure Larry and the rest of you guys here...

 

I downloded all of the different thumbnail mods and after reading each of them figured this one was the best -Automatic Thumbnail Creator v1.0

 

I added the code from it to my new store and it seems to be working super great........

 

I just installed it about 5 mins ago so I do hope it continues to keep working super great LOL ....

 

It made my thumbnail image files sizes go way way down in size and they all still look great..

 

I would have to sy at this point I HIGHLY recomend this one

Automatic Thumbnail Creator v1.0

 

you can see it in action on my site if you like and give me some feed back how it worked for you when you checked out the store from a fresh computer.

 

http://www.5till.com/catalog

 

do a right click on the thumbs and see the size and then do a right click on the large images to see the difference in size.

 

Thank You Leisure for do the research here on these and also a big thank you to the person that wrote the mod code.

Link to comment
Share on other sites

Who are you asking that Kim? about the top of the home page....

 

If it was me you were asking, I added my own header.php file that runs on the top of all pages of the 5till.com site inside the header.php file that is inside the includes folder of catalog..

 

Right up at the top under the opening php tag <?php right under there I added the code include_once and then my own header.php file from the other parts of my site.

 

 

My header.php file that runs the whole 5till web site is not exactly named header.php , I renamed it to a name close to heasder.php so it has no confilicts or confusion with any other php headers running mine is called headerclass.php for the top section of the store.

 

If you have any questions just throw up a post or shoot me an email from my web site.

Link to comment
Share on other sites

Someone please help...

 

I want to assist in the display of my images, i.e. they are getting squished on auto-resize.

 

I have read the write-ups and decided to add B5, on downloading instructions it is going on about GB librarys etc... can someone tell me the best and most simplest way to ensure my pictures get resized automatically without distortion?

 

Appreciated!!

 

Shawn

Link to comment
Share on other sites

Hi Spectr,

 

I just installed B5 and my admin pictures are looking fine. Maybe double check the readme file as I think there are two steps that are very similar and it's easy to miss one.

 

I was not entirely happy with B5 because it includes a background color when resizing. Let's say you had a 100 X 50 picture and you setup instructions to resize it to 50 by 50. It will maintain the aspect ratio which is good, so what you'll end up with is a 50 X 25 sized picture. HOWEVER, this picture will be placed inside a 50 X 50 box with a white background. So you'll have a 50 X 25 picture inside a 50 X 50 white box. I didn't like this as the background on our site is different, so I modified the contribution slightly so that it will make the box size the exact size as the picture. Anyone who has played with B5 will know what I'm talking about I think.

 

Anyways, thanks for the comments everyone! I'm pretty happy with B5, it was simple to install and does the job.

 

LL

Link to comment
Share on other sites

Hello

 

i am trying to use "B1) Image resample 6/23/2003" Everything works just fine, but it stops showing pictures on the product page. Pictures are shown and are correct resamples in the "News" box and in the list of the products, but when i try to look at the product-page - no picture is shown there. Anyone has solution to that problem?

 

Sincerelly,

 

Victor Gjeset

Link to comment
Share on other sites

  • 3 weeks later...

ive been trying to install some of these mods and on both

B3 and B4 after install i get this error.

 

Parse error: parse error, expecting `')'' in /www/includes/functions/html_output.php on line 278

 

Warning: Cannot send session cache limiter - headers already sent (output started at /www/includes/functions/html_output.php:278) in www/includes/functions/sessions.php on line 67

 

When i reinstall the original file so its all back to how it was im STILL getting this error, what the hell is going on!!

Link to comment
Share on other sites

First of all: thank you Larry! :D You saved me a headache and a lot of time searching and trying contributions. Usefull posts like this should be made sticky!

 

B4) Automatic Thumbnail Creator v1.0 7/12/2003

 

Automatically generates thumbnail jpg/png images (under new name) to the size defined in admin. Optionally will maintain

the original image proportions and centre the thumbnail on a backgound colour you set to suit your site.

Requirements GD >= 2.01, PHP >= 4.0.6 Works with osC 2.2 (uses the idea from netpbm contribution)

http://www.oscommerce.com/community/contributions,841

This is my choice. Really very simple to install and use, pefect results (for me). Beautifull, but small file size, thumbnails. Enlarged pop picture: original size and filesize. Exactly what I was looking for.

 

and hotnuts:

ive been trying to install some of these mods and on both

B3 and B4 after install i get this error.

 

Parse error: parse error, expecting `')'' in /www/includes/functions/html_output.php on line 278

 

Warning: Cannot send session cache limiter - headers already sent (output started at /www/includes/functions/html_output.php:278) in www/includes/functions/sessions.php on line 67

It looks like you or your editor inserted a line or (invisible) space after the last "?>" in "html_output.php". This is how you could get this error.

 

good luck :)

Link to comment
Share on other sites

  • 1 month later...

:( I have installed PHP image resample (B5) and I have the opposite problem stated earlier. My admin pages look great! but my product pages still look squashed. Anyone with ideas on this would be appreciated. I would also be intereseted in the code change that gets rid of the white background box.

 

Thanks!

 

35thSLP

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...