Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 3 votes

[Contribution] oscThumb


430 replies to this topic

#241 abks

  • Community Member
  • 7 posts
  • Real Name:Lily

Posted 09 November 2009, 01:18

First thanks to the great contribution, I have installed and managed to display with some of the thumbnails.

I found the reason for the not displayed as the picture file name has special character '&'. Like file "A & B.jpg", it will looking for "B.jpg". It seems this problem can only be solved by rename the picture file.

#242 germ

  • Community Member
  • 13,471 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 09 November 2009, 01:53

For best results on all systems file names should be limited to alpahnumeric (upper/lower case letters A-Z or digits 0-9) and the underscore (_)

The use of spaces or other punctuation or "special" characters should be avoided.

Sometimes you can get away with other characters and sometimes you can't.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#243 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 09 November 2009, 11:08

View Postabks, on 09 November 2009, 01:18, said:

First thanks to the great contribution, I have installed and managed to display with some of the thumbnails.

I found the reason for the not displayed as the picture file name has special character '&'. Like file "A & B.jpg", it will looking for "B.jpg". It seems this problem can only be solved by rename the picture file.


You are correct, you should not use any reserved characters in your filenames for your pictures, for best practice do not put any of: $&+,/:;=?@<>#%{}|^~[]` or any spaces or any quotes. If u have Photoshop, it's save for web option will ensure a valid filename. [img]http://forums.oscommerce.com/public/style_emoticons/default/smile.gif[/img]
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#244 topdisplayusa

  • Community Member
  • 55 posts
  • Real Name:Quang

Posted 09 November 2009, 13:50

View Postpedro.antunes, on 07 November 2009, 21:34, said:

My best guess is that you forgot to import the SQL into your database...


Importing The SQL is the first thing I did when installing the oscThumb.

#245 djruffle

  • Community Member
  • 6 posts
  • Real Name:Daniel Ruffle

Posted 22 November 2009, 17:45

I have installed oscThumb and it works great for the most part.

But the odd image has some artifacting and makes the image look terrible. I have cleared the cache and reuploaded the image but it still keeps happening.

Like is said it only happens on certain images and I have checked the settings on one image that isnt doing against one that is and they appear to be they same.

Can anyone offer any advice on how I combat this?

#246 prince_66

  • Community Member
  • 23 posts
  • Real Name:werner
  • Gender:Male
  • Location:switzerland

Posted 25 November 2009, 08:58

hello everyone ,
i tried to install oscthumbs vers1.1.2 so my site work before
(i have image on my products and off course if i turn off the switch button in the admin part it's work properly with images )
when i upload the last modified file hmtloutput i compare all the line code modified very well before i do ..
so now i have any images on my products i set the chmod of the cache file to 777 i change few things before in the configuration sets in the admin settings of the oscthumbs but nothing different like the install joining page
i tried to change image required to false to true nothing works
i tried to set the cache directory to phpThumb/cache/ to /phpThumb/cache/
i don't understand where is the error
so pls help me if you can

Edited by prince_66, 25 November 2009, 08:59.


#247 atvrocks

  • Community Member
  • 23 posts
  • Real Name:Remy

Posted 26 November 2009, 05:07

Hello,

I installed this contribution in conjunction with Simple Multiple Images (Unlimited) with Fancy Popups V1.3.2
While I was succesfull installing the contributions - the oscThumb does NOTHING. As a matter of fact - the Multiple Images contib. stops working, in terms that the thumbs stays the same - they do not "expand", nothing happened when I click on them.

Can someone please explain what should I do?
Thank you

#248 xswiftyx

  • Community Member
  • 55 posts
  • Real Name:James

Posted 26 November 2009, 15:56

Great contribution. Been installed for about 6 months now withno problems. But recently i changed the product info image size up to about 250x250px. Its looked fine when 1st checked but then i noticed an item with a review of that particular product in the right column and the image was also 250x250 which caused the column to look totalled screwed! (It too me a while to work out that it was changing size with the product info image).

The images in the review box are fine on any other page but the product info.
Any idea? could be simple maybe i removed a bit of code? Checked all obvois aspects but i'm lost.

Thanks

#249 pedro.antunes

  • Community Member
  • 41 posts
  • Real Name:pedro
  • Gender:Male

Posted 26 November 2009, 17:39

View Postxswiftyx, on 26 November 2009, 15:56, said:

Great contribution. Been installed for about 6 months now withno problems. But recently i changed the product info image size up to about 250x250px. Its looked fine when 1st checked but then i noticed an item with a review of that particular product in the right column and the image was also 250x250 which caused the column to look totalled screwed! (It too me a while to work out that it was changing size with the product info image).

The images in the review box are fine on any other page but the product info.
Any idea? could be simple maybe i removed a bit of code? Checked all obvois aspects but i'm lost.

Thanks
I didn't understood your problem entirely. In the right column you the thumbnail is not working? Can you post a picture showing the problem?

#250 xswiftyx

  • Community Member
  • 55 posts
  • Real Name:James

Posted 27 November 2009, 12:07

Its working but the review image is resizing with the product image but only on the product info page.
If there are no reviews or if you are a catagory page then its fine.

Please see attached image.
[img]http://www.car-mod-shop.co.uk/screen.jpg[/img]

#251 xswiftyx

  • Community Member
  • 55 posts
  • Real Name:James

Posted 27 November 2009, 12:17

Also just to let you know i have swapped the reviews box to the left column and it works fine. Rather it on the right side but its not the end of the work if it cant be done :)

#252 pedro.antunes

  • Community Member
  • 41 posts
  • Real Name:pedro
  • Gender:Male

Posted 27 November 2009, 17:22

View Postxswiftyx, on 27 November 2009, 12:17, said:

Also just to let you know i have swapped the reviews box to the left column and it works fine. Rather it on the right side but its not the end of the work if it cant be done :)
I was going to ask you to check the size of the image in the box reviews (mine is SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT) and check the values in the configuration, but if it works on the left side is because it is correctly set... I disabled the reviews on my shop because people were using it to make questions instead of ratin the products, but I added it back and it displays correctly on the left and right sides...

Please try to display the picture size value in the box to see if it displays correctly on the left and the right size. Add
echo "Width: ". SMALL_IMAGE_WIDTH . " - Height: ".SMALL_IMAGE_HEIGHT;
before:
$info_box_contents[] = array('text' => '<div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a><br><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div>');
in the includes/boxes/reviews.php file!

Maybe you are also setting the SMALL_IMAGE_WIDTH and/or SMALL_IMAGE_HEIGHT to the same size of the product info image (somewhere in the product_info.php file).

#253 blueedge

  • Community Member
  • 137 posts
  • Real Name:Keith

Posted 27 November 2009, 18:10

I have installed the oscThumb contribution. It works pretty well. However, I have a couple of quirks with the text watermark feature. I have been trying to hunt down solutions but, so far, no luck. Hopefully, someone can point me in the right direction.

Quirk #1: “Text Watermark Position” is set to “Top.” However, the text watermark actually appears in the lower right. When trying to change the position in the admin, I get the following error when clicking on the edit button:

Fatal error: Call to undefined function tep_cfg_pull_down_watermark_alignment() in /home/mysite/public_html/admin/configuration.php(125) : eval()'d code on line 1

Quirk #2: I have changed the product_info.tpl.php to now use PRODUCT_INFO_IMAGE_WIDTH and PRODUCT_INFO_IMAGE_HEIGHT. So, the size of the image that appears on the individual product page is now controlled by the “Product Information Image” settings in configuration/image. However, the appearance of a text watermark on the image that appears on the individual product page is controlled by the “Text Watermark in Pop-up Images,” and not by “Text Watermark in Product Information Thumbnails.” The image that appears on the individual product page seems to also use the settings for pop-up images and not the control settings for product information images. How do I get the text watermark to appear on the pop-up image but not the image that appears on the individual product page? Similarly, how do I get a frame to appear around the pop-up image without also appearing around the image that is on the individual product page?

(“Text Watermark in Small Thumbnails” seems to work fine, It does control the appearance of the text watermark on the product images on the category/subcategory listings.)

Quirk #3: When I click to edit the “Text Watermark Font Name” setting, I get the following error:

Fatal error: Call to undefined function tep_cfg_pull_down_installed_fonts() in /home/mysite/public_html/admin/configuration.php(125) : eval()'d code on line 1

Quirk #4: Changing the “Text Watermark Size” setting has no impact on the size of the text watermark.

#254 osCommaniak

  • Community Member
  • 19 posts
  • Real Name:Maciej Nowak
  • Gender:Male
  • Location:Poland

Posted 30 November 2009, 23:45

View Postxswiftyx, on 27 November 2009, 12:07, said:

Its working but the review image is resizing with the product image but only on the product info page.
If there are no reviews or if you are a catagory page then its fine.

(...)
I was writing here how to solve this problem. Go back to my posts.

#255 francois21

  • Community Member
  • 66 posts
  • Real Name:francois
  • Gender:Male
  • Location:France

Posted 02 December 2009, 10:22

Hello
I just installed oscthumb .
It is very effective, in fact, pages with many images that weighed 3200 kb are found a 650 kb.
However, I notice that some images are not resized. Only a few.
They are displayed at their actual size and shift the whole site.
Manufacturer Info example, an image that is 650 px wide is displayed in miniature is no problem, while another image that has only 300 px wide as it appears and shifts the whole column.
There is nothing that differentiates these 2 pictures and there are no accented characters or other errors in the name.
At about 1300 articles, there are 4 or 5 images that also appear in actual size.
The I also see no error in these images.
Does anyone had this problem?
Or an idea of why!
I am in local with WampServer is what's has this?

Excuse my bad english

Thank you
Francois

#256 pedro.antunes

  • Community Member
  • 41 posts
  • Real Name:pedro
  • Gender:Male

Posted 02 December 2009, 10:56

View Postblueedge, on 27 November 2009, 18:10, said:

I have installed the oscThumb contribution. It works pretty well. However, I have a couple of quirks with the text watermark feature. I have been trying to hunt down solutions but, so far, no luck. Hopefully, someone can point me in the right direction.

Quirk #1: “Text Watermark Position” is set to “Top.” However, the text watermark actually appears in the lower right. When trying to change the position in the admin, I get the following error when clicking on the edit button:

Fatal error: Call to undefined function tep_cfg_pull_down_watermark_alignment() in /home/mysite/public_html/admin/configuration.php(125) : eval()'d code on line 1

Quirk #2: I have changed the product_info.tpl.php to now use PRODUCT_INFO_IMAGE_WIDTH and PRODUCT_INFO_IMAGE_HEIGHT. So, the size of the image that appears on the individual product page is now controlled by the “Product Information Image” settings in configuration/image. However, the appearance of a text watermark on the image that appears on the individual product page is controlled by the “Text Watermark in Pop-up Images,” and not by “Text Watermark in Product Information Thumbnails.” The image that appears on the individual product page seems to also use the settings for pop-up images and not the control settings for product information images. How do I get the text watermark to appear on the pop-up image but not the image that appears on the individual product page? Similarly, how do I get a frame to appear around the pop-up image without also appearing around the image that is on the individual product page?

(“Text Watermark in Small Thumbnails” seems to work fine, It does control the appearance of the text watermark on the product images on the category/subcategory listings.)

Quirk #3: When I click to edit the “Text Watermark Font Name” setting, I get the following error:

Fatal error: Call to undefined function tep_cfg_pull_down_installed_fonts() in /home/mysite/public_html/admin/configuration.php(125) : eval()'d code on line 1

Quirk #4: Changing the “Text Watermark Size” setting has no impact on the size of the text watermark.
For questions 1 and 3, the missing functions should be on catalog\admin\includes\functions\general.php. Check if you have add them.

For question 4, on my case the default font when I imported the SQL file into the database was missing. For sure it will be also your case, so after adding the missing functions and after changing the font to an existing one it might work (I haven't test it myself).

For question 2, the setting for each image type is done in function _get_params. You might need change something here if it is not working for you. It takes into account the image type defined in the fucntion set_size, depending on the image width and height. To have the frame just in the popup image, you may need to add new settings in the database and then change accordingly in the function _get_params. As an example, you may add a new setting to (de)activate frames for popup images and then in the _get_params change:
      case 5:  // Popup.
      if (FRAME_POPUP=="Yes") $frame=true;
      if (BEVEL_POPUP=="Yes") $bevel=true;
      if (USE_WATERMARK_IMAGE_POPUP =="Yes") $image_watermark=true;
      if (USE_WATERMARK_TEXT_POPUP =="Yes") $text_watermark=true;
      $quality=(int)POPUP_JPEG_QUALITY;
      break;
into
      case 5:  // Popup.
      if (PUT HERE THE NEW ACTIVATION FLAG FOR FRAMES IN POPUP=="Yes") $frame=true;
      if (BEVEL_POPUP=="Yes") $bevel=true;
      if (USE_WATERMARK_IMAGE_POPUP =="Yes") $image_watermark=true;
      if (USE_WATERMARK_TEXT_POPUP =="Yes") $text_watermark=true;
      $quality=(int)POPUP_JPEG_QUALITY;
      break;


#257 pedro.antunes

  • Community Member
  • 41 posts
  • Real Name:pedro
  • Gender:Male

Posted 02 December 2009, 10:59

View Postfrancois21, on 02 December 2009, 10:22, said:

Hello
I just installed oscthumb .
It is very effective, in fact, pages with many images that weighed 3200 kb are found a 650 kb.
However, I notice that some images are not resized. Only a few.
They are displayed at their actual size and shift the whole site.
Manufacturer Info example, an image that is 650 px wide is displayed in miniature is no problem, while another image that has only 300 px wide as it appears and shifts the whole column.
There is nothing that differentiates these 2 pictures and there are no accented characters or other errors in the name.
At about 1300 articles, there are 4 or 5 images that also appear in actual size.
The I also see no error in these images.
Does anyone had this problem?
Or an idea of why!
I am in local with WampServer is what's has this?

Excuse my bad english

Thank you
Francois
I also use WAMPServer and I never saw this problem. All images that go through tep_image function should be thumbnailed.

Br

#258 hyperion917

  • Community Member
  • 2 posts
  • Real Name:Christopher
  • Gender:Male

Posted 03 December 2009, 03:40

Great add-on, installed easily and works great! Just one question: I have a few animated GIFs as product images. When these get thumbnailed they are also getting flattened to the first image in the animated sequence. Is there any way to either:

* Fix it so the animated GIFs get scaled without clobbering them, or
* Turn off thumbnailing on a per-product basis?

Thanks!

-ch

Edited by hyperion917, 03 December 2009, 03:40.


#259 francois21

  • Community Member
  • 66 posts
  • Real Name:francois
  • Gender:Male
  • Location:France

Posted 03 December 2009, 09:55

Hello
Thank's for your response.
The images measure eg 270 wide by 80 high are not resized.
We must put a size square or nearly square 270 and 250 by example and it work.
I tested on the original images that displayed wrong and she had a big difference between the width and height.
If I reduced the difference, although it appears in miniature.

is this normal or should we setting anything, or to change the code .
Thank you
Francois

Edited by francois21, 03 December 2009, 09:56.


#260 Dan Cole

  • Community Member
  • 151 posts
  • Real Name:Dan Cole
  • Gender:Male
  • Location:Ontario, Canada

Posted 03 December 2009, 19:19

View Postfrancois21, on 03 December 2009, 09:55, said:

Hello
Thank's for your response.
The images measure eg 270 wide by 80 high are not resized.
We must put a size square or nearly square 270 and 250 by example and it work.
I tested on the original images that displayed wrong and she had a big difference between the width and height.
If I reduced the difference, although it appears in miniature.

is this normal or should we setting anything, or to change the code .
Thank you
Francois

I'm having the same problem....I didn't think to check the difference between the height and width of the images but now that you have me thinking about that, it might well be the problem in my situation too. I'll investigate this a little more and see if that is indeed what is happening....dan