Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'On the Fly' Auto Thumbnailer using GD Library


Guest

Recommended Posts

  • 2 months later...
  • Replies 313
  • Created
  • Last Reply

Top Posters In This Topic

I'm having a weird problem with Thumbnails, some appear but some don't, i'm checked file exist and display correctly when hit directly, all permissions are the same.

- When i turn off "Server Caching" all images are stop to work

 

Does it sound like a caching issue? Any idea?

 

Thanks!

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

Anyone figured this out yet ? When I load the new html_outpout.php file my spacer.gif go 1px x 1px and also my backrgound gif is affected and my layout is completely messed ..

 

Hope to solve this asap smile.gif

 

Thanks !

Link to comment
Share on other sites

Hi,

 

Anyone figured this out yet ? When I load the new html_outpout.php file my spacer.gif go 1px x 1px and also my backrgound gif is affected and my layout is completely messed ..

 

Hope to solve this asap smile.gif

 

Thanks !

 

Hi again :)

 

It seems I have found a solution to this ..... The following autothumbnailer doesnt have these issues with spacer.gif ....

 

http://www.oscommerce.com/community/contributions,2872/

 

It works for me :)

Link to comment
Share on other sites

  • 1 year later...

Please can someone help. The contribution is fab the thumbnails look great. My problem is that when in the admin area. all the buttons for 'add new product' 'add category' delete product etc are missing and cannot edit add move anything.

 

if someone can please help me that would be great.

 

Thanks in advance.

 

Timmer

Link to comment
Share on other sites

  • 1 year later...

Hi I got quiet a few errors in my error log, these are the latest errors, hope someone can help me sort this out.

 

[01-Mar-2012 08:47:15] PHP Warning:  implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /home/*******/public_html/includes/functions/general.php on line 239
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  w in /home/*******/public_html/product_thumb.php on line 268
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  h in /home/*******/public_html/product_thumb.php on line 268
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  w in /home/*******/public_html/product_thumb.php on line 306
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  h in /home/*******/public_html/product_thumb.php on line 306
[01-Mar-2012 15:26:28] PHP Warning:  imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in /home/*******/public_html/product_thumb.php on line 306
[01-Mar-2012 15:26:28] PHP Warning:  imagecolorallocate(): supplied argument is not a valid Image resource in /home/*******/public_html/product_thumb.php on line 313
[01-Mar-2012 15:26:28] PHP Warning:  imagefill(): supplied argument is not a valid Image resource in /home/*******/public_html/product_thumb.php on line 315
[01-Mar-2012 15:26:28] PHP Warning:  imagecolortransparent(): supplied argument is not a valid Image resource in /home/*******/public_html/product_thumb.php on line 316
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  w in /home/*******/public_html/product_thumb.php on line 340
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  h in /home/*******/public_html/product_thumb.php on line 340
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  w in /home/*******/public_html/product_thumb.php on line 350
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  h in /home/*******/public_html/product_thumb.php on line 350
[01-Mar-2012 15:26:28] PHP Warning:  imagecopyresampled(): supplied argument is not a valid Image resource in /home/*******/public_html/product_thumb.php on line 350
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  w in /home/*******/public_html/product_thumb.php on line 362
[01-Mar-2012 15:26:28] PHP Notice:  Undefined index:  h in /home/*******/public_html/product_thumb.php on line 362
[01-Mar-2012 15:26:28] PHP Warning:  imagejpeg(): supplied argument is not a valid Image resource in /home/*******/public_html/product_thumb.php on line 363
[01-Mar-2012 15:26:28] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/*******/public_html/product_thumb.php:268) in /home/*******/public_html/product_thumb.php on line 202
[01-Mar-2012 15:26:28] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/*******/public_html/product_thumb.php:268) in /home/*******/public_html/product_thumb.php on line 203
[01-Mar-2012 15:26:28] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/*******/public_html/product_thumb.php:268) in /home/*******/public_html/product_thumb.php on line 204

Link to comment
Share on other sites

  • 11 months later...

There is still a big question about this addon I can't understand.

Are the images resized when a client visits the page first time and after that chased images are used?

 

If so then the first time the customer loads the page he/she will still have to wait until the large image is downloaded and resized?

 

So preresizing my thumbnail image before I upload it would still be more useful then right? Since it doesn't have to be resized "on the fly", only it would be more work.

 

 

Is that right??

Link to comment
Share on other sites

@@surf55

 

I would personally use the addon found here if you havea 2.3 site. It has a supported support forum unlike this one

 

http://addons.oscommerce.com/info/8492/v,23

 

Ok thanks I'll look into it. But still I can't understand if I need this addon or not?

If I install the Kissit addom do I need to upload a small thumbnail image and then all the rest product images in normal size?

 

 

If I resize the first image before upload do I still need this contribution?

Link to comment
Share on other sites

  • 2 weeks later...

Thumbnails are getting generated, but my issue is, they are not getting displayed in my site.....

 

 

in catalog/includes/functions/html_output.php..... i guess this line is supposed to display the image.....

 

$image = '<img src="product_thumb.php?img=' . $src . '&w=' .

tep_output_string($width) . '&h=' . tep_output_string($height) . '"';

 

 

But when I check through firebug.... firebug says 'failed to load the given url'.......

 

any idea how $src can be modified... so that it points to images/thumbnails...

A man is great by Deeds, not by Birth....

Link to comment
Share on other sites

  • 1 year later...

This contribution seems to be very popular. Anyway, it doesn't work for my shop. I uploaded all new files and modified the existent ones. I also changed the setting in the administration panel. When I refresh the website there is a X for every picture instead of showing those. The link of an image looks now like this here

<img width="104" height="135" border="0" title="My test product" alt="My test product" src="product_thumb.php?img=images/mytestprod.jpg&w=104&h=135">

Actually, I don't know where to find the error or what to change to make it work. Any ideas?

Link to comment
Share on other sites

This addon was very popular for a while but there are better ones now. I suggest you remove it and install this one. It is no longer supported and has some problems but I think most have been addressed in the support thread.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

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