Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 3 votes

[Contribution] oscThumb


434 replies to this topic

#301 spooks

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

Posted 19 January 2010, 00:21

View PostTim Romero, on 18 January 2010, 23:36, said:




What have u tried? what r your settings? have u tried changing them? have u checked your server support?


PS My radio stopped working, whats wrong with it? [img]http://forums.oscommerce.com/public/style_emoticons/default/ohmy.gif[/img]
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.

#302 Tim Romero

  • Community Member
  • 34 posts

Posted 19 January 2010, 18:07

View Postspooks, on 19 January 2010, 00:21, said:

What have u tried? what r your settings? have u tried changing them? have u checked your server support?

Earlier I had a different error(path error i think), so i followed the instructions that ShaneRounce said on 05 August 2009 - 11:53 AM

That seemed to help the last error, but I moved on to another. I haven't changed anything since the new error occurred. Here's my uncommented lines from phpthumb.config.php:

$PHPTHUMB_CONFIG['document_root'] = '';
$PHPTHUMB_CONFIG['cache_directory'] = $PHPTHUMB_CONFIG['document_root'].CFG_TN_CACHE_DIRECTORY;
$PHPTHUMB_CONFIG['cache_disable_warning'] = false;
$PHPTHUMB_CONFIG['cache_directory_depth'] = 4;
$PHPTHUMB_CONFIG['cache_maxage'] = 86400 * 30;
$PHPTHUMB_CONFIG['cache_maxsize'] = 10 * 1024 * 1024;
$PHPTHUMB_CONFIG['cache_maxfiles'] = 200;
$PHPTHUMB_CONFIG['cache_source_enabled']   = false;
$PHPTHUMB_CONFIG['cache_source_directory'] = dirname(__FILE__).'/cache/source/';
$PHPTHUMB_CONFIG['cache_source_filemtime_ignore_local']  = false;
$PHPTHUMB_CONFIG['cache_source_filemtime_ignore_remote'] = true;
$PHPTHUMB_CONFIG['cache_default_only_suffix'] = '';
$PHPTHUMB_CONFIG['cache_prefix'] = 'phpThumb_cache_'.str_replace('www.', '', @$_SERVER['SERVER_NAME']);
$PHPTHUMB_CONFIG['cache_force_passthru'] = true;
$PHPTHUMB_CONFIG['temp_directory'] = $PHPTHUMB_CONFIG['cache_directory'];

Is this what you asked for? I have not checked my server support. What am I looking for? In phpinfo? Thanks Spooks

#303 Tim Romero

  • Community Member
  • 34 posts

Posted 19 January 2010, 18:51

I asked my server and they do support GD images

#304 lacoz

  • Community Member
  • 41 posts
  • Real Name:Jozef Mrkva

Posted 19 January 2010, 23:34

Hi all. This problem was mentioned here before, but I wasn´t able to find a solution. I have the Fancy Pics V1 from spooks installed on my website (working perfectly). Then I installed the oscThumb contribution, without any errors, but it doesn´t seem to work. The settings in admin are looking OK, but no watermarks appear on the popup images, no files in the cache (folder writable), etc. I went through all the 16 pages of this forum, tried every suggestion (also that one with replacing the line 112 in product_info), and it still didn´t change. At least all my images are ok and not broken links, like other users referred.

Do You have any ideas?

Thanks

#305 spooks

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

Posted 20 January 2010, 01:47

View Postlacoz, on 19 January 2010, 23:34, said:

Hi all. This problem was mentioned here before, but I wasn´t able to find a solution. I have the Fancy Pics V1 from spooks installed on my website (working perfectly). Then I installed the oscThumb contribution, without any errors, but it doesn´t seem to work. The settings in admin are looking OK, but no watermarks appear on the popup images, no files in the cache (folder writable), etc. I went through all the 16 pages of this forum, tried every suggestion (also that one with replacing the line 112 in product_info), and it still didn´t change. At least all my images are ok and not broken links, like other users referred.

Do You have any ideas?

Thanks


Yes there are issues with thumbnails in that, i've not had time to update, I gave code in this thread to resolve the issue (as it applies generally) there are also issues with encrypted filenames, both are fixed in the latest of Simple Multi Image Add-on (Un-Limited) with Fancy Popups http://addons.oscommerce.com/info/7008 which in product info at least, uses very similar code.
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.

#306 spooks

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

Posted 20 January 2010, 01:51

View PostTim Romero, on 19 January 2010, 18:51, said:

I asked my server and they do support GD images


That is meaningless, the gd library has many options, if u don't have the right ones it wont work.

I was refering to your oscThumb settimgs, have u not looked at them? have u read the doc? [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]
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.

#307 Tim Romero

  • Community Member
  • 34 posts

Posted 21 January 2010, 16:59

View Postspooks, on 20 January 2010, 01:51, said:

That is meaningless, the gd library has many options, if u don't have the right ones it wont work.

I was refering to your oscThumb settimgs, have u not looked at them? have u read the doc? [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]

ok, so your response made me think there was something I was missing. I snooped around a little and found the whole phpThumb/demo/ section. I ran the phpThumb.demo.check.php, and saw i needed to delete the phpThumb.config.php.default. After I deleted that, the demo check ran successfully. Here are the sections of the check that had problems:

ImageMagick features: gaussian (yellow)

ImageMagick formats: "sh: ./identify: No such file or directory" (no color, just white text box)

php_sapi_name(): cgi-fcgi (orange)
     Comments: SAPI mode preferred to CGI mode. FCGI mode has unconfirmed strange behavior (notably more than one space in "wmt" filter text causes errors). If not working in "apache" (SAPI) mode, apache_lookup_uri() will not work.

magic_quotes_gpc: true (yellow)

I knew how to change magic_quotes_gpc, so i did. That wasnt my problem. I'm still getting the same grey error box that i previously posted. I dont thnk the gaussian feature is a huge problem. Maybe php_sapi_name()?

Edited by Tim Romero, 21 January 2010, 17:00.


#308 lacoz

  • Community Member
  • 41 posts
  • Real Name:Jozef Mrkva

Posted 21 January 2010, 20:17

View Postspooks, on 20 January 2010, 01:47, said:

Yes there are issues with thumbnails in that, i've not had time to update, I gave code in this thread to resolve the issue (as it applies generally) there are also issues with encrypted filenames, both are fixed in the latest of Simple Multi Image Add-on (Un-Limited) with Fancy Popups http://addons.oscommerce.com/info/7008 which in product info at least, uses very similar code.

Ok so I should install this addon instead of the Fancy Pics V1, or should I use only the product_info file?

#309 mdtaylorlrim

  • Community Member
  • 2,497 posts
  • Real Name:Mark
  • Gender:Male

Posted 03 February 2010, 00:51

oscThumb and Site Monitor do not work well together. Since oscThumb creates so many directories it is unreasonable to put every directory in the oscThumb/cache into the site monitor excludes list. So, I moved the oscThumb/cache director to a path outside of the catalog files. oscThumb died.

It seems that the path for the oscThumb is fixed to /%document_root%/%catalog_root%/ so any path you put into the cache path in the config will always be in the catalog path. An attempt to move it to say... /var/www/php/thumb/cache/ results in /%document_root%/%catalog_root%//var/www/php/thumb/cache/

Before I go poking around in both oscThumb and Site Monitor, has anyone run into this before, what was the solution, and is there an easier way?
Avoid the most asked question. See How to Secure My Site and How do I...?

#310 puddlec

  • Community Member
  • 118 posts
  • Real Name:Craig
  • Gender:Male
  • Location:UK

Posted 03 February 2010, 11:58

gone over the install of this a few times, but i keep on getting the same problem. images goto red x, and displays the alt tags

right clicking i get this
oscthumb.php?src=/images/example.jpg&w=139&h=139&f=jpg&q=50&hash=7c992bbb4b419db9376d51340273ff24

below is my GD details from php.info
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

so can someone put me in the right direction with this
(problem is in both the product page and the Categories pages through index.php)

#311 Dan Cole

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

Posted 04 February 2010, 01:33

View Postmdtaylorlrim, on 03 February 2010, 00:51, said:

oscThumb and Site Monitor do not work well together. Since oscThumb creates so many directories it is unreasonable to put every directory in the oscThumb/cache into the site monitor excludes list. So, I moved the oscThumb/cache director to a path outside of the catalog files. oscThumb died.
Can't you just exclude the "phpThumb" directory from within SiteMonitor? Under the configuration menu.

Dan

#312 mdtaylorlrim

  • Community Member
  • 2,497 posts
  • Real Name:Mark
  • Gender:Male

Posted 05 February 2010, 03:35

I have reason to NOT want the cache in the /catalog/ filespace. Anyone know if it will break oscThumb if I move it somewhere else, provided it is accessible and writable by the web server process?
Avoid the most asked question. See How to Secure My Site and How do I...?

#313 sparky76

  • Community Member
  • 6 posts
  • Real Name:Alex
  • Gender:Male

Posted 05 February 2010, 16:20

I am using this great contribution, but I also use the nopic-AddOn. The result is that my tables are destroyed because everytime the system checks for the nopic.jpg, the thumbnailer creates a 500+px empty picture.

Has anyone a hint for me?

#314 puddlec

  • Community Member
  • 118 posts
  • Real Name:Craig
  • Gender:Male
  • Location:UK

Posted 05 February 2010, 16:47

View Postpuddlec, on 03 February 2010, 11:58, said:

gone over the install of this a few times, but i keep on getting the same problem. images goto red x, and displays the alt tags

right clicking i get this
oscthumb.php?src=/images/example.jpg&w=139&h=139&f=jpg&q=50&hash=7c992bbb4b419db9376d51340273ff24

below is my GD details from php.info
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

so can someone put me in the right direction with this
(problem is in both the product page and the Categories pages through index.php)
I managed to fix my problem, made a small mistake

#315 TurboNed

  • Community Member
  • 30 posts
  • Real Name:Zizou
  • Gender:Male

Posted 08 February 2010, 03:45

Hi, installed this contribution and everything seems to be working except that all of my sub-categories are not showing up, and all images that I used for sub-categories are PNG images.

Does anyone have any idea what to do with it?

thanks in advance

#316 mdtaylorlrim

  • Community Member
  • 2,497 posts
  • Real Name:Mark
  • Gender:Male

Posted 08 February 2010, 19:20

View PostDan Cole, on 04 February 2010, 01:33, said:

Can't you just exclude the "phpThumb" directory from within SiteMonitor? Under the configuration menu.

Dan
No, it doesn't work that way. I have it detailed in the Site Monitor support thread.
Avoid the most asked question. See How to Secure My Site and How do I...?

#317 joyousbeast

  • Community Member
  • 2 posts
  • Real Name:Chris Smith

Posted 12 February 2010, 02:21

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!


View PostBAV, on 17 January 2010, 20:05, said:

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

Hi Bav,

I am having the exact same problem has you seemed to have. Could you possibly tell me how you fixed it? Any help would be much appreciated as I've been working at it for days!

Cheers
Chris

#318 kurios

  • Community Member
  • 78 posts
  • Real Name:Kire Lam

Posted 19 February 2010, 15:51

Hello again and thanks to Spooks for keeping this thread alive!

My problem is the same; I have the light box contrib and more pics contrib installed together with this contribution and everything works except for the watermarking of light box pics. I know spooks made a contribution "Simple Multi Image Add-on (Un-Limited) with FancyBox Popups" that works but I simply can't uninstall morepics to install his addon instead because of the massive amount of pictures i've already added (my shop is live).

So anyone please tell me what i should change inorder to get the watermarking to work with lightbox.

/thanks

#319 spooks

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

Posted 19 February 2010, 18:06

View Postkurios, on 19 February 2010, 15:51, said:

I simply can't uninstall morepics to install his addon instead because of the massive amount of pictures i've already added (my shop is live).


If it helps, I have given a code snippit to convert dBase entries from another add-on, to that of the Simple Multi Image Add-ons
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.

#320 shayrgob

  • Community Member
  • 410 posts
  • Real Name:Mike

Posted 21 February 2010, 10:07

I just installed oscThumb to http://www.importwerks.com and it doesn't seem to be working properly. It shows in the admin area and I can configure the settings but the thumbnails keep showing up at roughly 60 pixels wide regardless of what I do with the settings. In the "images" section I have the width set at 100 so I don't know why it's showing at 60.

Any ideas???

thanks