Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by mloeffen

  1. 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.
  2. @Rich: please upload a working version of the thumbnailer before everyone starts complaining it does not work. Both the files of product_thumb.php should be identical. Thanks :thumbsup:
  3. Nice one Richard. It was about time for a full package release and I think your update will be appreciated by quite a few people. Keep up the good work :thumbsup: Martijn.
  4. @Mark: thank you for your positive feedback. These are also appreciated :thumbsup: @Becki: glad to hear you got it sorted. Cheers :)
  5. The folder structure should be documented in the readme. If I recall it right, the thumbnail-path ($tn_path) you specify in the auto thumbnailer script is appended to the path of the image. So if your image filename is /catalog/images/mypic.jpg then the to be created cache-folder should be /catalog/images/thumbnails. The original (read first) version of the thumbnailer did not have a caching mechanism. Every thumbnail for an image was created at runtime (whenever it was requested by a visitor/browser) over and over again. Someone added the server-caching that caused the thumbnail-images to be stored (cached) on the webserver, so the thumbnailer script had to create the thumbnails just once. After that I added browser-caching. That's a mechanism enabling a browser to detect whether the thumbnail has changed since the last time it was viewed/downloaded from the webserver. If it hasn't changed, the browser will get the thumbnail from it's own cache (e.g. c:\documents and settings\username\temporary internet files), probably saving lots of bandwidth. If the thumbnail did change from the last time, it will redownload the thumbnail from the webserver. Server-caching and browser-caching can be enabled and disabled independant from one another. Hope this clarifies some questions you have. Cheers, Martijn.
  6. This seems as if it's related to the original image. Open these images in an image-editor and resave them. That might improve the quality for the tumbnails.
  7. Make sure the folder is writable by the auto thumbnailer script. Maybe in the newer version some quality setting is set to true by default, where it wasn't in a previous version. It also depends if you changed the product_info.php so that it displays the thumbnail twice as large as on the frontpage. Please read the manual that comes with the contribution and read it thouroughly.
  8. I've looked into it, but there seems nothing wrong with the thumbnailer contrib. If for instance you try this thumbnailed image, it shows up instantly in IE7. Other non-thumbnailed images (as this one) show up fast as well, as long as you view them apart. So *many* images are loading slow from the main page, even the once that do not use the thumbnailer contrib. I think you have to look elsewhere for a possible reason (another oscommerce contrib, a webserver module, bandwidth issues, http-connection issues or whatever). Good luck!
  9. This can have several reasons: server caching, browser caching and others. If you want me to have a look, then please send me some urls of these slow sites through PM. Cheers, Martijn.
  10. There is no need to re-upload the images again. The add-on will take care of that. I'm not quite sure if they are compatible. The latest Dynamic MoPics also does something with showing different size images, but you need to upload those seperately. You could install both contributions in a temporary demo shop and see how they react to one another. First install Dynamic MoPics, then the Auto Thumbnailer. Trying to explain the approach of the on the auto thumbnailer contribution: it is being called be the generic function of osCommerce that draws images in your shop. Normally the this oscommerce-function (tep_image) would generate html like <img src="....jpg">, but after the thumbnailer contribution it would generate html like <img src="thumbnailer.php?img=.....jpg&w=80&h=80"> (I don't remember the exact code and I am to lazy to check :P ) Meaning that if the Dynamic MoPics uses the tep_image function for drawing images, it will probably also work for the extra images. Like I said before: to be sure you have to test it on a temporary demosite :thumbsup:
  11. Why don't you look just above your post :lol:
  12. Maybe your new host has a different gd library version installed? You might try setting both $use_resampling and $use_truecolor to true in product_thump.php. If that doesn't help, try setting $gif_as_jpeg to true. After making your changes, don't forget to delete the thumbnails, otherwise you still see the old ones.
  13. Try this instead to maintain normal image size <td align="center"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '100%', '100%', 'hspace="5" vspace="5"'); ?> </td> Microsoft :-"
  14. The error lies within the product_info.php. You did not include the width and height parameter for the tep_image function. So now the params-parameter is being passed as a width-parameter. The code should be reading <td align="center"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> Haven't tested the new code, but I think you understand the reason for the missing thumbnail. Cheers.
  15. Just sent you a pm that it seems to be a typo in product_info.php. To make sure, send me product_info.php and html_output.php. Cheers, Martijn.
  16. Did you try to the 'extra tip' that enables a third images size for the product_info page? E.g. by multiplying the width and height with 2? If so, please verify you didn't make any typing errors. It would also help if you post (or PM) the link to the broken images and a link to the page where the error occurs. I wonder if images are not shown or actually broken (with a red cross in Internet Explorer).
  17. Didn't know it would bother you, sorry for that. I asked a moderator to edit the post, since I can't anymore. And I'm glad to hear you fixed the problem with the incorrect link :thumbsup:
  18. On luthier.co.uk you may have uploaded product_thumb.php, but certainly not on viollinbridges.co.uk. Like I said in my PM, you seem to be missing the point of what you have installed. Make an image-link from violinbridges to luthier. Also, an error I noticed when clicking an image on violinbridges Warning: main(phpgdv30/guard.php): failed to open stream: No such file or directory in <removed as requested - bluenotemkvi>/imtest.php on line 2 Fatal error: main(): Failed opening required 'phpgdv30/guard.php' (include_path='.:/usr/lib/php') in <removed as requested - bluenotemkvi>/imtest.php on line 2 Good luck :thumbsup:
  19. Cause of problem resolved: product_thumb.php was not uploaded >_<
  20. Have you read the requirements? Have you got a proper gd-library installed so php can create thumbnails at all? What version of gd-library is installed? If the gd-library is right, please send me: a link to your site (where I can find your 'special products' feauture installed) and your configure.php without database username and password. Cheers, Martijn.
  21. Correction of code on last post in page 8: Should have been echo MY_WIDTH; // -> will show MY_WIDTH define('MY_WIDTH','100'); echo MY_WIDTH; // -> will show 100
  22. In oscommerce 2.2 MS2 in admin/includes/configure.php on line 25 it looks like this (default) define('DIR_WS_IMAGES', 'images/'); I don't know why it's different for you, maybe you have an earlier version of oscommerce or it was due to another contribution? If you want me to have a look, send me a PM with the configure.php of your catalog and the one of your admin area. Please remove database info such as username and password, so I won't be tempted to login and steel your data :P
  23. With the information given it's not clear what you are trying to do and what your problem is. If all you're asking is "where are the height and width coming from", then the answer is simple. SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT are two configuration settings you can find in the admin area of your shop (step #7 of the installation instructions). These two configuration values are stored in and read from the database and oscommerce puts the values in constants with the same name (SMALL_IMAGE_HEIGHT and SMALL_IMAGE_WIDTH). If another website has to know those values to make links, then the other website should have those constants declared too. Again: it's not clear to me which scenario is being used and what the *exact* problem is. If you are going to do some more troubleshooting: if a constant is not declared, then most of the times php will use the name as an actual value. E.g. echo MY_WIDTH; // -> will show MY_CONSTANT define('MY_WIDTH','100'); echo MY_CONSTANT; // -> will show 100 I thought this might help you get an idea of what is wrong. If you still need help, please say what you've done so far, what happens (does the thumbnailer work on 1 server and not on another, do you have a url to look at) and what you expected to happen. Good luck.
  24. Looking at your site I see no reference to the auto thumbnailer contrib within the images. Did you replace the tep_image function in the html_output.php according to the readme? If so, please go through all steps of the readme again and make sure (not assume) you performed all required steps. P.S. There's no need to delete or rename images, because this is an auto thumbnailer ;)
  25. Limit the image-size within popup_image.php? I Have not tested this, so make sure you test it properly before you change anything in a live shop ;) In popup_image.php change <?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?> into <?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], 1024, 768); ?> and in product_thumb.php make sure that the variable $allow_larger is set to false. Cheers, Martijn.