'On The Fly' Auto Thumbnailer using GD Library 2.1
#541
Posted 13 April 2012 - 10:12 PM
My thumbs are not generating, I do not get any errors, and when I view the image the path is correct(http://www.duds4buds.com/product_thumb.php?img=images/Golden-bears_GH.jpg&w=110&h=71) but I just get a path in the browser window instead of a image.
I hope someone can shed some light on my problem,
Todd
#542
Posted 13 April 2012 - 10:57 PM
If there's enough interest I could create a new add-on around that, it would not have all the features of this though.
Given the issues with this I`m not sure its worth de-bugging
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#543
Posted 14 April 2012 - 12:44 AM
I also found that the thumbs are being generated just not shown.
Thank you for your time,
Todd
#544
Posted 14 April 2012 - 12:55 AM
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#545
Posted 14 April 2012 - 12:33 PM
Todd
#546 ONLINE
Posted 14 April 2012 - 01:16 PM
You can for instance use this version: DJStealth 7 Sep 2008
And update the thumbfile with this one: mauriziomagnino 11 Feb 2011
Edited by toyicebear, 14 April 2012 - 01:18 PM.
Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.
#547
Posted 19 April 2012 - 03:33 AM
Strangely, the line
if (!is_file($src)) { $src = "../images/no_image.jpg"; }
at html_output.php, under catalog/admin/includes/functions, made all my products images
disappear. Removing this line the images comes back.
The banner on the left top is intacted.
This means the test for $src is not a file. Why?
My programs are shown
http://pastebin.com/JY98xfqk (html_output.php)
http://pastebin.com/PLTM9KuV (categories.php)
#548
Posted 29 April 2012 - 04:38 PM
I have everything working except on th procuct info page..anyone know where to look to fix that.
Thanks
Tom
#549
Posted 02 May 2012 - 02:50 PM
I made some modification to product_thumb.php :
- block '..' in paths,
- lock users into the DIR_WS_IMAGES folder,
- make variable names clearer,
- simpler modify_tn_path,
- remove unneeded calls to modify_tn_path()
Source: product_thumb.php
This change might be needed on the admin includes/functions/html_output.php:
inside tep_image()
change
// Get the image's information
if ($image_size = @getimagesize($src)) {
to
$FS_img = $src;
if (!is_readable($FS_img))
$FS_img = DIR_FS_CATALOG . $FS_img;
// Get the image's information
if ($image_size = @getimagesize($FS_img)) {
Feedback/advice on my changes would be very welcome.
cheers.
One reservation: My test environment currently has '/' as catalog ( define('DIR_WS_HTTP_CATALOG', '/') )
so this may need some minor tuning to work for other locations, however I *think* it should work as-is. Please let me know either way?
possible further improvements: As @spooks has said a db connection per thumbnail may be a bit of a problem... in that case just pull the config out of the db and into the php. (but the store admin would no longer be able to change thumbnail settings from the admin interface.)
Edited by mpalasis, 02 May 2012 - 02:53 PM.
#550
Posted 02 May 2012 - 03:14 PM
- if thumbnails folder is specified, then a directory structure will be automatically created inside it to reflect the source image. (ie img=images/foo/bar/image.jpg .. thumbnails/images/foo/bar/image.jpg_thumb123x456.jpg...). This effect did not quite work, though the docs of the addon said it would...
Edited by mpalasis, 02 May 2012 - 03:16 PM.
#551
Posted 07 September 2012 - 05:24 AM
Installed it, no error, but can't see if this add on did anything....
thanks
Lyn
#552
Posted 07 September 2012 - 09:42 AM
What it should do is to reduce the size of the small thumbnail images on your site. The easiest way to see if it is working is to open your homepage and right click an image in the products new area. You should be able to see the file size there. Now open the same product in your browser and right click the main image and look at the filesize. The thumbnail image should be smaller than the large image size.
There is a better image contribution if you are using 2.3. Search the adsdons for kiss image or something similar.
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.









