Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 3 votes

[Contribution] oscThumb


434 replies to this topic

#281 dOoBiX

  • Community Member
  • 3 posts
  • Real Name:Wesley

Posted 09 January 2010, 01:18

I like how this plugin displays the thumbnails in the product listing page, but is it possible to make it display the full size image in the product description page? If so, can someone tell me what to change?

#282 NoobOscommerecer

  • Community Member
  • 14 posts
  • Real Name:Eoghan

Posted 10 January 2010, 08:25

Hi All,


First of all i want to thank you for your time..

I installed the add on, and when under Admin->Configuration->oscThumb i switch oscThumb master switch to true, my images on the site are all broken links. I have NOT turned any extra features i.e. watermark or encryption on, and i have reviewed my installations 3 times and a mate as looked at it as well... i cant work out what have i done wrong?

on 1 of the broken links i right click and selected "Copy Image Url" which is...
http://Mywebsiteaddress/store/oscthumb.php?src=/images/Mobiles/EGG-107-2.jpg&w=100&h=80&fltr[]=wmt|Eoghans%20Gismoz%20n%20Gadgets|10|Top|000000|arial.ttf|20|0|0&f=jpg&q=95&hash=bae816922606644182c5a18748446708


Any HElp PLease?

#283 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 10 January 2010, 12:43

View PostNoobOscommerecer, on 10 January 2010, 08:25, said:




Perhaps your php isnt compiled with all the necessary gd library functions?

Add this code to a page (I add it just b4 the <!-- body //--> section) it will inform u of you gd library status.

 

<style type="text/css">
.yes, .no {color: green; float: right; font-weight: bold;}
.no {color: red; }
.opts {float: left;}
</style>

<center><div style="clear: both; width:400px;">
<?php 
 $yes = '<p class="yes">Yes</p>'; $no = '<p class="no">No!!</p>';$nl =  '<br><hr>';
 echo '<br><p class="opts">GD support on your server:</p>';	
 if(function_exists("gd_info"))   {   
  echo $yes .$nl;   $gd = gd_info(); 
  echo '<p class="opts">GD Version =</p><p class="yes">' . $gd['GD Version'] . '</p>'. $nl;  
  echo '<p class="opts">XBM Support =</p>' . ($gd['XBM Support'] ? $yes : $no ) . $nl; 
  echo '<p class="opts">Jpeg Support =</p>' . ($gd['JPG Support'] ? $yes : $no ) . $nl;
  echo '<br>Options List:<br><br>'; 
  foreach ($gd as $k => $v) {
  if ($k == 'GD Version') continue;
   echo '<p class="opts">' . $k . '</p>' .($v ? $yes : $no).$nl;
  }
 } else { echo $no;   } 
  ?></div></center>



Sam

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.

#284 Dan Cole

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

Posted 10 January 2010, 15:51

View PostdOoBiX, on 09 January 2010, 01:18, said:

I like how this plugin displays the thumbnails in the product listing page, but is it possible to make it display the full size image in the product description page? If so, can someone tell me what to change?


You can install Spooks Simple Multi Image Add-on (Un-Limited) with FancyBox Popups which you can find here...it uses oscThumb.

Simple Multi Image Add-on (Un-Limited) with FancyBox Popups

I use it and like it alot.

Dan

#285 NoobOscommerecer

  • Community Member
  • 14 posts
  • Real Name:Eoghan

Posted 10 January 2010, 21:00

View Postspooks, on 10 January 2010, 12:43, said:

Perhaps your php isnt compiled with all the necessary gd library functions?

Add this code to a page (I add it just b4 the <!-- body //--> section) it will inform u of you gd library status.

 

<style type="text/css">
.yes, .no {color: green; float: right; font-weight: bold;}
.no {color: red; }
.opts {float: left;}
</style>

<center><div style="clear: both; width:400px;">
<?php 
 $yes = '<p class="yes">Yes</p>'; $no = '<p class="no">No!!</p>';$nl =  '<br><hr>';
 echo '<br><p class="opts">GD support on your server:</p>';	
 if(function_exists("gd_info"))   {   
  echo $yes .$nl;   $gd = gd_info(); 
  echo '<p class="opts">GD Version =</p><p class="yes">' . $gd['GD Version'] . '</p>'. $nl;  
  echo '<p class="opts">XBM Support =</p>' . ($gd['XBM Support'] ? $yes : $no ) . $nl; 
  echo '<p class="opts">Jpeg Support =</p>' . ($gd['JPG Support'] ? $yes : $no ) . $nl;
  echo '<br>Options List:<br><br>'; 
  foreach ($gd as $k => $v) {
  if ($k == 'GD Version') continue;
   echo '<p class="opts">' . $k . '</p>' .($v ? $yes : $no).$nl;
  }
 } else { echo $no;   } 
  ?></div></center>






Put that in and nothing has come up?? So does that mean that there is something wrong??
Thanks again

#286 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 10 January 2010, 21:20

View PostNoobOscommerecer, on 10 January 2010, 21:00, said:

Put that in and nothing has come up?? So does that mean that there is something wrong??
Thanks again


Means you put it in the wrong place, created an error or put it somewhere it wont execute.

It will say GD support on your server yes (+options) or no


it must be within a php file, not a html one
Sam

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.

#287 PiLLaO

  • Community Member
  • 109 posts
  • Real Name:Gustavo

Posted 10 January 2010, 21:48

I uninstall "on the fly" for install oscThumb and... oscThumb rooolz jejjee.

I have a little problem, in the config I have using Text Watermak only for the popups images, but it's show too in product_info thumbnails.

I have installed too Simple Multiple Images (Unlimited) with Fancy Popups V1.3.5

Can anybody help me, please?

Sorry for my poor english :blush:

Regards!!!

#288 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 10 January 2010, 22:13

Watermark on thumbnail

View PostPiLLaO, on 10 January 2010, 21:48, said:

I uninstall "on the fly" for install oscThumb and... oscThumb rooolz jejjee.

I have a little problem, in the config I have using Text Watermak only for the popups images, but it's show too in product_info thumbnails.

I have installed too Simple Multiple Images (Unlimited) with Fancy Popups V1.3.5

Can anybody help me, please?

Sorry for my poor english [img]http://forums.oscommerce.com/public/style_emoticons/default/blush.gif[/img]

Regards!!!


There is a support thread for Simple Multiple Images (Unlimited) with Fancy Popups , please use it.

In product_info.php Find:

tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"', false, 5)

Replace with
 

tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"')


Edited by spooks, 10 January 2010, 22:16.

Sam

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.

#289 NoobOscommerecer

  • Community Member
  • 14 posts
  • Real Name:Eoghan

Posted 10 January 2010, 22:43

View Postspooks, on 10 January 2010, 21:20, said:

Means you put it in the wrong place, created an error or put it somewhere it wont execute.

It will say GD support on your server yes (+options) or no


it must be within a php file, not a html one


Thanks for your time...

I have it in http://www.gismozngadgets.com/store/contact_us.php but nothing comes up.. I asked my host and they said it is installed and can be confirmed at the following link http://gismozngadgets.com/phpinfo.php

Dont want to but might just do a fresh reinstall of Oscomerce, and install OscThumbs on the fly, then manually install all the oter contribs.. :(

#290 NoobOscommerecer

  • Community Member
  • 14 posts
  • Real Name:Eoghan

Posted 10 January 2010, 22:53

View PostNoobOscommerecer, on 10 January 2010, 22:43, said:

Thanks for your time...

I have it in http://www.gismozngadgets.com/store/contact_us.php but nothing comes up.. I asked my host and they said it is installed and can be confirmed at the following link http://gismozngadgets.com/phpinfo.php

Dont want to but might just do a fresh reinstall of Oscomerce, and install OscThumbs on the fly, then manually install all the oter contribs.. :(


Created a PHP File on the fly using a PHP Editor, added your little script.. and Ran it..


GD support on your server:Yes
GD Version =bundled (2.0.34 compatible)
XBM Support =Yes
Jpeg Support =Yes

Options List:

FreeType SupportYes
FreeType LinkageYes
T1Lib SupportNo!!
GIF Read SupportYes
GIF Create SupportYes
JPG SupportYes
PNG SupportYes
WBMP SupportYes
XPM SupportYes
XBM SupportYes
JIS-mapped Japanese Font SupportNo!!

#291 PiLLaO

  • Community Member
  • 109 posts
  • Real Name:Gustavo

Posted 10 January 2010, 23:01

View Postspooks, on 10 January 2010, 22:13, said:

Watermark on thumbnail


There is a support thread for Simple Multiple Images (Unlimited) with Fancy Popups , please use it.

In product_info.php Find:

tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"', false, 5)

Replace with
 

tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"')

Thanks for your answer, it solve my problem :)

Please excuse me, I thought that it was caused by oscThumb, by this reason I posted here :blush:

Thanks for all :)

Regards!!

#292 NoobOscommerecer

  • Community Member
  • 14 posts
  • Real Name:Eoghan

Posted 11 January 2010, 13:02

View PostNoobOscommerecer, on 10 January 2010, 22:53, said:

Created a PHP File on the fly using a PHP Editor, added your little script.. and Ran it..



oK i HAVE fixed the problem...
Nothing to do with the editting of the files... i did a file compare of the files i needed to upload and files on the web server i somehow missed 6 files that did not upload properly.

Thank you Sam and all for your time, and assistance

#293 PiLLaO

  • Community Member
  • 109 posts
  • Real Name:Gustavo

Posted 12 January 2010, 07:46

Hello!!,

Two little issues,

1 - Thumbnails in admin are deformed, is this correct?

2 - PNG images are transformed in blank images (also with watermark if enabled).

My server support GD PNG.

Can anybody help me?

Thanks!!!

#294 bhbilbao

  • Community Member
  • 291 posts
  • Real Name:BLACKHOLE
  • Gender:Male
  • Location:Spain

Posted 12 January 2010, 20:09

Quote

2 - PNG images are transformed in blank images (also with watermark if enabled).

Same problem wih me,
othertime its transformed with a grey background if transparent.

Try to change Use Zoom Crop to True.

My config:

oscThumb Master Switch On
Process Store's Graphics False
Encrypt Image Filenames True
Filename Encryption Key blackhole bilbao
Output GIFs as JPEGs False
'GIF as JPEG' Matte colour (HEX) FFFFFF
Thumbnail Cache directory phpThumb/cache/
Use Zoom Crop? True


My problem is when diferent product have the same image asigned.
When listing products images with various contributions phpthumb takes the first image queried and cached it. But the second image appears in the same size.

For example I want the product_image with big size , and down optional products with small size.


Does anybody kwons how to fix this????

#295 BAV

  • Community Member
  • 12 posts
  • Real Name:Bogdan Vlase
  • Gender:Male
  • Location:Bucharest

Posted 16 January 2010, 21:09

Hello everyone!

First i want to say thank you for this great contribution!

I have installed the last version of oscThumb (1.1.2), and it works fine, but there is still one problem:
In the images section (in admin panel), i set the "product information image width" parameter at 300px (because i want to see the image in productinfo page at this dimension, but i also want to see the same image in "specials" box and "what's new" box with original settings for small images - 100px*80px)
I switch on the contribution, and nothing happened, it seems like it doesn't work. My image in productinfo page it's still 100px*80px.

Best regards!

#296 PiLLaO

  • Community Member
  • 109 posts
  • Real Name:Gustavo

Posted 16 January 2010, 21:28

View Postbhbilbao, on 12 January 2010, 20:09, said:

Same problem wih me,
othertime its transformed with a grey background if transparent.

Try to change Use Zoom Crop to True.

My config:

oscThumb Master Switch On
Process Store's Graphics False
Encrypt Image Filenames True
Filename Encryption Key blackhole bilbao
Output GIFs as JPEGs False
'GIF as JPEG' Matte colour (HEX) FFFFFF
Thumbnail Cache directory phpThumb/cache/
Use Zoom Crop? True


My problem is when diferent product have the same image asigned.
When listing products images with various contributions phpthumb takes the first image queried and cached it. But the second image appears in the same size.

For example I want the product_image with big size , and down optional products with small size.


Does anybody kwons how to fix this????
Que va... siguen sin aparecer las miniaturas ni las fotos, solo la marca de agua
----
Using this config, images are still blank, only apears watermark.

Saludos!!!
-----
Regards!!!

#297 Mr.81

  • Community Member
  • 124 posts
  • Real Name:Ross

Posted 17 January 2010, 02:04

I've installed it all but it's not appearing in my admin? =/

#298 Mr.81

  • Community Member
  • 124 posts
  • Real Name:Ross

Posted 17 January 2010, 02:12

View PostMr.81, on 17 January 2010, 02:04, said:

I've installed it all but it's not appearing in my admin? =/
I'm officially an idiot...somehow missed out the sql step, mistaking it for a database back-up...

#299 BAV

  • Community Member
  • 12 posts
  • Real Name:Bogdan Vlase
  • Gender:Male
  • Location:Bucharest

Posted 17 January 2010, 20:05

View PostBAV, on 16 January 2010, 21:09, said:

Hello everyone!

First i want to say thank you for this great contribution!

I have installed the last version of oscThumb (1.1.2), and it works fine, but there is still one problem:
In the images section (in admin panel), i set the "product information image width" parameter at 300px (because i want to see the image in productinfo page at this dimension, but i also want to see the same image in "specials" box and "what's new" box with original settings for small images - 100px*80px)
I switch on the contribution, and nothing happened, it seems like it doesn't work. My image in productinfo page it's still 100px*80px.

Best regards!

Nevermind... I've fixed it! :thumbsup:

#300 Tim Romero

  • Community Member
  • 34 posts

Posted 18 January 2010, 23:36

View Poststeph44, on 31 October 2009, 18:44, said:

Hello and thank you Spooks, :D
it works except that the images do not show and I had this error:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/********/www/********/includes/classes/oscthumb.php on line 271
Then I re-updated and I have no message but I still have no images generated :blush:
I set chmod 777 on cache

Sorry for my English :blush:

bump. i am getting the same php error msg. This is what all my images look like when i turn on oscthumb
[img]http://www.toohotglass.com/images2/error.jpg[/img]