Jump to content
Latest News: (loading..)
FWR Media

KissIT Image Thumnailer

Recommended Posts

if there are no alt tags for multiple images, that effectively means its not valid code does it not?

 

anybody have a fix for this or is it impossible?

 

what other plugins are there similar to KissIT thumbnailer?

Share this post


Link to post
Share on other sites

if there are no alt tags for multiple images, that effectively means its not valid code does it not?

 

anybody have a fix for this or is it impossible?

 

what other plugins are there similar to KissIT thumbnailer?

 

You would have to fix the osCommerce bxGallery it has nothing to do with KissIT.

Share this post


Link to post
Share on other sites

Hi Robert,

 

Just want to say thanks for this great addon.

 

Lyn

 

Well .. thank you .. don't often get that :)

Share this post


Link to post
Share on other sites

Excellent stuff Robert,

 

This is by far the easiest to install contribution for thumbnails, and it works very well. I would recommend anyone to install this.

 

It is also one of the most needed contributions for oscommerce.

 

Best regards,

 

Ian

Share this post


Link to post
Share on other sites

Hi Robert,

 

Thanks for this addon, it really help with the image size display as well.

 

I had modify the product_info.php

 

The original Samsung Galaxy,

main product tab on top, and four small one at the bottom and when you mouse over it change to that image,

and when you click on it, it bring up bigger size picture.

http://demo.oscommerce.com/product_info.php?products_id=28

 

Somehow after install few addons, the image doesn't do same job anymore.

I also install product zoomer, which works fine with only one picture.

 

If I had more then one picture, the first one will be covered and the zoom fucntion will disappear.

 

Since you are expert in oscommerce and also have knowledge about the image, do you mind to take little time to read my product_info.php code and give me advises.

 

If you are free and happy to help, I will send PM to you.

If you are busy, it is ok.

 

Once again, thank you very much.

 

Lyn

Share this post


Link to post
Share on other sites

An issue I have run into is when adding images in admin, it appears that you can only display either the thumbnail or the large image in a product. Is the large image supposed to "overwrite" the thumbnail image? Sorry so dense:)

Share this post


Link to post
Share on other sites

@@pvoce

 

You upload an image of "any size" ( ideally of a decent dimension matching your choice of smaller image dimensions )

 

Then in the script the image is displayed using the osCommerce tep_image() wrapper.

 

When the tep_image() wrapper is used in the script it passes in width and height.

 

KissIT looks at this info and produces an image/thumbnail exactly to the dimensions passed in.

 

tep_image() example ( from index.php product listings ): -

 

tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

 

This translates to: -

 

tep_image( 'images/my_product_image.jpg', 'product_name', 100, 80)

 

Now presuming that the image is larger than width 100 height 80, KissMT will resize the image to those dimensions and display it.

 

Hope that helps.

Share this post


Link to post
Share on other sites

RWF: To an extent. When adding an image to a product, I am to upload a larger one to the thumbnail, which I do. However, the image is displayed within the product as full sized, not shrunken. Am I missing something?

Share this post


Link to post
Share on other sites

Am I missing something?

 

In the install instructions, there's a separate page with instructions on how to handle the product image on the product page. Make sure you did that part.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites
In the install instructions, there's a separate page with instructions on how to handle the product image on the product page. Make sure you did that part.

 

Found it. I made the changes here on the localhost, but the configure.php didn't make the ftp upload for some reason. I'm blaming the lack of coffee. Works like a charm now. Thank both of ya'll for your time and patience.

Share this post


Link to post
Share on other sites

Hi, I've tested on my test shop and it works fine and quite fast, however I've noticed that thumbnails and images in admin are not resized in correct proportions, Did I make a mistake or do I need to change something in settings. Also, the transparent gifs are not being changed correctly, it seems that they may have lost their transparency, but it could also be the problem of the original gif...?


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

Hi, I've tested on my test shop and it works fine and quite fast, however I've noticed that thumbnails and images in admin are not resized in correct proportions, Did I make a mistake or do I need to change something in settings. Also, the transparent gifs are not being changed correctly, it seems that they may have lost their transparency, but it could also be the problem of the original gif...?

 

Images are resized correctly, the system though has to create an exact size of image because you have stipulated an exact size for the <img tag. If you upload images that can't be scaled to the correct size then they will be placed within a white background of the correct size.

 

There is no support for transparencies as most usage is for non transparent.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hi Robert,

 

I kept recieve this error message when I edit the product images, what should I do to fix it?

 

Many thanks in advance.

 

 

Lyn

 

 

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146

 

 

	  return imagepng ( $this->_image, $save_in, $quality, $filters );

Share this post


Link to post
Share on other sites

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146

 

Good catch Lyn

 

catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php

 

Find ( line 144 )

 

 

	  $quality = is_null ( $quality ) ? 0 : $quality;

 

Change to ...

 

	  $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );

Share this post


Link to post
Share on other sites

Good catch Lyn

 

catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php

 

Find ( line 144 )

 

 

	  $quality = is_null ( $quality ) ? 0 : $quality;

 

Change to ...

 

	  $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );

 

Hi Robert,

 

It's me again. I am trying to install the jQZoom,

test it and it didn't work so I put the original product_info.php back

 

However the picture quality of the product list became really bad now.

 

Also I started to receive the same error message again.

 

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 149

Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 149

 

 

I had change the code as you suggested

 

$quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );

 

Can you pleaes help? I can PM you my site if you need to have a look.

 

Thanks

 

Lyn

Share this post


Link to post
Share on other sites

@@ce7

 

Well my correction wasn't quite right but unless you have set quality in html_output.php to 100 then it isn't the problem.

 

I'll give a better solution anyway: -

 

Find ( line 144 )

 

 

 

	 $quality = is_null ( $quality ) ? 0 : $quality;

 

Change to:-

 

		  $quality = !is_numeric ( $quality ) ? 7 : floor ( $quality / 10 );
	  if ( $quality < 0 ) {
	    $quality = 0;
	  } elseif ( $quality > 9 ) {
	    $quality = 9;  
	  }

 

Now as to your problem, please empty the thumbs directory so it can rebuild the thumbs.

Share this post


Link to post
Share on other sites

@@FWR Media

 

Really helpful contribution Rob, I have just one problem- It doesn't seem to create thumbnails for category pages, I use the product listing grid thumbnail view add-on and it shows browser resized images instead of the ones generated by this add-on. But if I switch to list view then the images are the correct ones generated from your addon.

On other pages like homepage it's fine.

 

Any ideas why it doesn't show the generated images only on grid view in categories?

Edited by al3ks

Find this post helpful? Click the 'Like this' button. :)

Share this post


Link to post
Share on other sites

@@FWR Media

Any ideas why it doesn't show the generated images only on grid view in categories?

 

Yup http://addons.oscommerce.com/info/8495

 

Read please note: at the bottom.

 

Example: -

 

tep_image(DIR_WS_IMAGES . $image, $products['products_name'], PRODUCT_IMAGE_WIDTH, '')

 

Obviously bad code as it doesn't supply the tep_href_link() wrapper with a height.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Ok, I've changed the

PRODUCT_IMAGE_WIDTH,

to

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT

and it works. Thanks for the great addon.


Find this post helpful? Click the 'Like this' button. :)

Share this post


Link to post
Share on other sites

hi FWR

 

does this image thumbnailer display pictures ok if javascript is turned off?

 

also, i can't remember where i read, but was there an issue with "alt" tags or something?

 

im going to give it a go and install it on my 2.3.2 shop.

thanks

Share this post


Link to post
Share on other sites

@@vampirehunter

 

Javascript off has no effect as KissIT makes no use of javascript. ( not that it matters as no shoppers who actually expect to buy anything will have javascript off ).

 

There are no known issues currently ( although I will be looking at transparencies in the future ). Other than those already mentioned in this support thread: -

 

See: http://forums.oscommerce.com/topic/388022-kissit-image-thumnailer/page__view__findpost__p__1646044

Edited by FWR Media

Share this post


Link to post
Share on other sites

@@newburns

 

I can't see an example.

 

But .. KissIT does what you tell it to do .. you put in a width and height into tep_image and that is the size it will create.

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

×