Latest News: (loading..)
mloeffen

'On The Fly' Auto Thumbnailer using GD Library 2.1

555 posts in this topic

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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

As for your other question: no need to make the thumbnails yourself. After all it is called an auto-thumbnailer ;)

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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:

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

4 amd64lover his configure.php was fixed and the product_thumb.php was re-uploaded. All works well now.

Share this post


Link to post
Share on other sites

It is very cool, thank you!

 

One question: how about adding the possibility to create a watermark with whatever image I want? It would be a great feature

Share this post


Link to post
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)

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I'm getting ERROR where my images are meant to be.

 

Is there anyway of debugging easily to find out what is going on.

 

Previous version <2.0.0 was working ok.

 

Thanks

Aaron

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now