'On The Fly' Auto Thumbnailer using GD Library 2.1
#1
Posted 19 August 2005 - 09:26 AM
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.
#2
Posted 19 August 2005 - 12:37 PM
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
#3
Posted 19 August 2005 - 04:15 PM
Cancacti, on Aug 19 2005, 01:37 PM, said:
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
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, 19 August 2005 - 04:17 PM.
#4
Posted 19 August 2005 - 04:53 PM
#5
Posted 19 August 2005 - 06:26 PM
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.
#6
Posted 19 August 2005 - 07:20 PM
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
#7
Posted 19 August 2005 - 07:24 PM
Geordiedan, on Aug 19 2005, 07:20 PM, said:
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!!
#8
Posted 21 August 2005 - 08:26 AM
Thanks and sorry for being stupid.
Kevin
#9
Posted 21 August 2005 - 08:47 AM
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?
#10
Posted 21 August 2005 - 08:58 AM
#11
Posted 21 August 2005 - 03:19 PM
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, 21 August 2005 - 03:20 PM.
#12
Posted 24 August 2005 - 11:48 AM
#13
Posted 24 August 2005 - 01:43 PM
#14
Posted 26 August 2005 - 02:57 AM
One question: how about adding the possibility to create a watermark with whatever image I want? It would be a great feature
#15
Posted 29 August 2005 - 09:59 AM
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
#16
Posted 29 August 2005 - 11:38 PM
I am using php5
aF
#17
Posted 30 August 2005 - 11:59 PM
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.
#18
Posted 31 August 2005 - 04:35 AM
haezer, on Aug 31 2005, 07:59 AM, said:
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.
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.
#19
Posted 31 August 2005 - 05:52 AM
boxtel, on Aug 31 2005, 12:35 PM, said:
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.
#20
Posted 31 August 2005 - 06:06 AM
boxtel, on Aug 31 2005, 01:52 PM, said:
$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.









