Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'On The Fly' Auto Thumbnailer using GD Library 2.1


mloeffen

Recommended Posts

Just started this thread to have a page that I can link to in the updated readme.

 

If you want to ask questions or have suggestions for 'On The Fly' Auto Thumbnailer using GD Library, then please do it here.

 

If you are looking for a previous support thread, you can look here. Another thread, which is actually located in the contribution anouncements, you can find here.

 

Cheers,

Martijn.

Link to comment
Share on other sites

  • Replies 556
  • Created
  • Last Reply

Top Posters In This Topic

Hoi,

 

Doesn't work with me, it fails to show images. My problem is that I have the site on the root, not in /catalog/. Ive made a catalog/images/thumbnails aswell but that didn't help either.

 

Do I have to make thumbs myself first?. Ive tried to chance the product_thumb but no luck either. I have GD Library 1.60 on my hoster.

 

Any advice?

 

 

Nathalie

Link to comment
Share on other sites

Hoi,

 

Doesn't work with me, it fails to show images. My problem is that I have the site on the root, not in /catalog/. Ive made a catalog/images/thumbnails aswell but that didn't help either.

 

Do I have to make thumbs myself first?. Ive tried to chance the product_thumb but no luck either. I have GD Library 1.60 on my hoster.

 

Any advice?

Nathalie

Thanks for your feedback.

 

As for your problem: it should work, but only since version 2.0 an aditional thumbnail-directory is supported. If you use version 2.1.2 the completely rewritten readme shows two sites where the contribution works for, and at least one store is located within root. This readme is also easier to follow when installing than the readme.txt that was included. Why not use that one?

 

Use the newer contribution-version and give me a link to your site (PM me if you want) and I'll help you out.

Edited by mloeffen
Link to comment
Share on other sites

I'm wondering if wouldn't it be better if URLs to images would be outputted as normal links. I mean, not as product_thumb?image.jpg&w=80&h=80 but already to resized image like images/image.jpg.thumb_80x80.jpg.

 

Thumbnails in this case would need to be generated a little bit sooner (when page is requested instead of when image itself is requested) but it has one advantage that I can think of - we would not need to mess with headers, browser and server would take care of it.

Link to comment
Share on other sites

Hi,

 

I've just installed your thumbnailer and it works great for JPEG images - however it refuses to parse my GIFs at all :(

 

The URL for the thumbed images returns a blank box, but it does refer to a valid image.

 

I've tried setting JPEG as GIFs to on, but this generates an error.

 

Do you have any ideas?

 

Dan

Link to comment
Share on other sites

Hi,

 

I've just installed your thumbnailer and it works great for JPEG images - however it refuses to parse my GIFs at all :(

 

The URL for the thumbed images returns a blank box, but it does refer to a valid image.

 

I've tried setting JPEG as GIFs to on, but this generates an error.

 

Do you have any ideas?

 

Dan

 

I am such an idiot - folks, make sure you have a thumbnails folder in any subdirectories in your images folder!! :blush: :blush: :blush:

Link to comment
Share on other sites

The thumbnails are the same size as in product_info. Even click enlarge is still the same size. What happen to the original picture.

 

Thanks and sorry for being stupid.

Kevin

Link to comment
Share on other sites

Have you read the installation-section in the readme.html?

 

I noticed a few things: when using http://www.simplyvcd.com/product_thumb.php....jpg&w=90&h=100 it gives the error that the thumbnail could not be displayed cause it contains errors. If you are using a gd-library version < 2.0.1 you should set $use_resampling to false (it's default set to true) in product_thumb.php.

In the same file, set $use_truecolor to false (default set to true) for the same reason as above.

 

Did you also edit /catalog/includes/functions/html_output.php according to the readme?

Link to comment
Share on other sites

I have installed this following the instructions in the Read Me file exactly... It still doesnt work for me... In Step 3 it says ..."Note: check this configuration file to make sure the path is set correctly for both your catalog directory *and* your images directory. With this installation-example, the DIR_WS_HTTP_CATALOG value should be '/catalog/' and the DIR_WS_IMAGES value, 'images/'. Notice that it doesn't have a leading '/')!"...

When I take out the leading '/', no pictures are displayed on our homepage (www.dasaexoticart.com/osCommerce). When I leave it in there, pictures are displayed, but they are not in the correct proportions.

It looks like they are in the proportions set in the Configuration -> My Store -> Images... I am not sure what I am doing wrong, but it doesnt look like any thumbnails are being created... Please Help!

Edited by amd64lover
Link to comment
Share on other sites

oscommerce-2.2ms2

 

If you have issues with the admin section and in

 

/catalog/admin/includes/configure.php

 

you have this line here:

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

change it to:

 

define('DIR_WS_CATALOG_IMAGES', '../images/');

 

then it works with the admin section too.

 

A must have contrib B)

Link to comment
Share on other sites

I have just installed auto-thumbnailer and it seems to work terrifically. One thing that I noticed is, in the admin section, whilst editing existing products, osCommerce is complaining about the image not being uploaded, even though it is and a thumbnail is being generated. This sounds like osCommerce is checking for a file which doesn't exist.

 

I am using php5

 

aF

Link to comment
Share on other sites

Hi,

 

Just installed this and it works only if I change $tn_server_cache = false;

If I swicth caching then it wont work (broken thumbnail). My shop is in root without catalog.

I have followed the instruction.

Can someone show me what other settings I need to change?

Thank you.

Link to comment
Share on other sites

Hi,

 

Just installed this and it works only if I change $tn_server_cache = false;

If I swicth caching then it wont work (broken thumbnail). My shop is in root without catalog.

I have followed the instruction.

Can someone show me what other settings I need to change?

Thank you.

I was struggling with that too. it seems that the thumbnail directory has to be put under the root. So if your images are in "www.site.com/images" and your thumbnail directory is set to "thumb/" then you need to create a subdirectory in the root called "thumb/images".

 

 

one strange thing I cannot get is that in IE when looking at the properties of the thumbnail I always get :

 

http://www.site.com/product_thumb.php?

 

no parameters are shown there and I believe no browser caching is done whereas in FF it does show the parameters but then with :

 

http://www.site.com/product_thumb.php?img=...es/theimage.....

 

in other words without the thumbnail directory in the reference.

Treasurer MFC

Link to comment
Share on other sites

I was struggling with that too. it seems that the thumbnail directory has to be put under the root. So if your images are in "www.site.com/images" and your thumbnail directory is set to "thumb/" then you need to create a subdirectory in the root called "thumb/images".

one strange thing I cannot get is that in IE when looking at the properties of the thumbnail I always get :

 

http://www.site.com/product_thumb.php?

 

no parameters are shown there and I believe no browser caching is done whereas in FF it does show the parameters but then with :

 

http://www.site.com/product_thumb.php?img=...es/theimage.....

 

in other words without the thumbnail directory in the reference.

 

it seems that if I use this :

 

$lastModifiedHttpFormat = gmdate('D, d M Y H:i:s',$lastModified ) . ' GMT';

 

 

IE seems to cache ok and gives 304 headers, in the original, I could not get rid of the 200 responses.

Treasurer MFC

Link to comment
Share on other sites

it seems that if I use this :

 

$lastModifiedHttpFormat = gmdate('D, d M Y H:i:s',$lastModified ) . ' GMT';

IE seems to cache ok and gives 304 headers, in the original, I could not get rid of the 200 responses.

 

the original outputs (in my case) local taipei time and I suspect that IE does not accept any other time but the Gates Microsoft Time.

Treasurer MFC

Link to comment
Share on other sites

Having an issue with this great contribution.

If I have an image name that has spaces in it and this translates to an image name with%20 in it the thumbnailer creates the error image.

 

eg

beleek china mug.jpg

is in image src

beleek%20china%mug.jpg

 

Any idea of a quick way to get by this apart from renaming all the files and updating all the products, which is not quick.

 

Thank you Regards

Sean

Sean Owens

Link to comment
Share on other sites

Hi

 

great contribution.

One thing I noticed was when I am displaying images that have a space in their name I get the error image showing. They are jpgs and when you look at them in the popup they have %20's in the name. So is there a way by this.

 

Example on this page http://mcevoys.ie/index.php?cPath=83_152&o...533287db89f19b9

 

Any ideas ?

 

Cheers

Sean

Sean Owens

Link to comment
Share on other sites

Hey guys,

Just curious if anybody else has this problem. I am using the STS product_info page and so i am using the set of variables they give you to use. I currently have $imagesmall for the image to show up, but then how do you get the hyperlink to work so that the View Larger image link I created, getting it to work anybody know how to do?

Link to comment
Share on other sites

I am looking for a good auto-thumbnail generator and thought that this one might be a good one to try. These two most recent concerns about spaces in the filename and using the STS product_info page are not good. Can anyone provide any insight into these issues?

 

I'm hesitant to use the contribution until these issues are addressed. I would have a tough time explaining these problems to clients.

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