[Contribution] oscThumb
#241
Posted 09 November 2009, 01:18
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
Posted 09 November 2009, 01:53
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.
"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
Posted 09 November 2009, 11:08
abks, on 09 November 2009, 01:18, said:
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]
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.
#245
Posted 22 November 2009, 17:45
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
Posted 25 November 2009, 08:58
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
Posted 26 November 2009, 05:07
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
Posted 26 November 2009, 15:56
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
Posted 26 November 2009, 17:39
xswiftyx, on 26 November 2009, 15:56, said:
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
#250
Posted 27 November 2009, 12:07
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
Posted 27 November 2009, 12:17
#252
Posted 27 November 2009, 17:22
xswiftyx, on 27 November 2009, 12:17, said:
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
Posted 27 November 2009, 18:10
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
Posted 30 November 2009, 23:45
xswiftyx, on 27 November 2009, 12:07, said:
If there are no reviews or if you are a catagory page then its fine.
(...)
#255
Posted 02 December 2009, 10:22
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
Posted 02 December 2009, 10:56
blueedge, on 27 November 2009, 18:10, said:
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 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
Posted 02 December 2009, 10:59
francois21, on 02 December 2009, 10:22, said:
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
Br
#258
Posted 03 December 2009, 03:40
* 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
Posted 03 December 2009, 09:55
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
Posted 03 December 2009, 19:19
francois21, on 03 December 2009, 09:55, said:
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














