Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 09:51 am EST

Geeklog Forums

Netpbm error: Image, MVC-010F.JPG had trouble being resized:


Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
i have rechecked countless times my file permissions and my path in the config.php file (see below) and i have searched and read thousands of forums posts to no avail...its got to be something simple, and almost stupid.

my config.php path:$_CONF['path_to_netpbm'] = '/home/greenhil/public_html/flagleravenue-org/netpbm';

thanks,
greenhil
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by greenhil: my config.php path:$_CONF['path_to_netpbm'] = '/home/greenhil/public_html/flagleravenue-org/netpbm';

That's a path and therefore should end in a slash.

bye, Dirk
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
sorry to confuse things...in fact the trailing slash is there in the config file...

any other ideas?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Switch on the debugging infos for the image upload (in config.php) and see if that helps tracking down the problem:
Text Formatted Code
// Uncomment the following line if you experience problems with the image
// upload. Debug messages will be added to the error.log file.                
// $_CONF['debug_image_upload'] = true;
 

bye, Dirk
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
i had read about that line of code in earlier posts but it is non existent in my geeklog/config.php file

??!!!
i even ran a search an find to make sure i just wasnt missing it???
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by greenhil: i had read about that line of code in earlier posts but it is non existent in my geeklog/config.php file

It was introduced in Geeklog 1.3.9. If you're on 1.3.9 but don't have it in your config.php, you can simply add it.

bye, Dirk
 Quote

Status: offline

solomon

Forum User
Newbie
Registered: 10/15/04
Posts: 8
bump

I'm having this problem also. I'm running netpbm-10.18.15 and GL-1.3.9sr1. I have made the appropriate alterations to config.php, checked the error log, I'm pretty sure everything is chmodded correctly. Everything works fine if I upload images that are within the size constraints.

Does anyone know what I can do here?

CONFIG.PHP
Text Formatted Code
$_CONF['image_lib'] = 'netpbm';
$_CONF['path_to_netpbm']        = '/home/httpd/php/webapps/cmt/netpbm-10.18.15/';
$_CONF['debug_image_upload'] = true;
 


ERROR.LOG
Text Formatted Code
Tue 19 Oct 2004 13:44:35 BST - Debug: File size for cr4[1].jpg is 42766 bytes
Tue 19 Oct 2004 13:44:35 BST - Debug: File, cr4[1].jpg is of mime type image/pjpeg and IS an image file.
Tue 19 Oct 2004 13:44:35 BST - Debug: in _getImageDimensions I got a width of 400, and a height of 533
Tue 19 Oct 2004 13:44:35 BST - Debug: Max allowed width = 150, Image width = 400
Tue 19 Oct 2004 13:44:35 BST - Debug: Max allowed height = 400, Image height = 533
Tue 19 Oct 2004 13:44:35 BST - Debug: File, cr4[1].jpg has a width of 400 and a height of 533
Tue 19 Oct 2004 13:44:35 BST - Debug: File, cr4[1].jpg is of mime type image/pjpeg and IS an image file.
Tue 19 Oct 2004 13:44:35 BST - Debug: in _getImageDimensions I got a width of 400, and a height of 533
Tue 19 Oct 2004 13:44:35 BST - Debug: Max allowed width = 150, Image width = 400
Tue 19 Oct 2004 13:44:35 BST - Debug: Max allowed height = 400, Image height = 533
Tue 19 Oct 2004 13:44:35 BST - Debug: File, cr4[1].jpg has a width of 400 and a height of 533
Tue 19 Oct 2004 13:44:35 BST - Debug: in _getImageDimensions I got a width of 400, and a height of 533
Tue 19 Oct 2004 13:44:35 BST - Debug: Going to resize image to 300x400 using netpbm
Tue 19 Oct 2004 13:44:35 BST - Debug: Attempting to resize with this command (netpbm): /home/httpd/php/webapps/cmt/netpbm/jpegtopnm  '/home/httpd/php/webapps/cmt/public_html/images/articles/2004101913340542_1.jpg' | /home/httpd/php/webapps/cmt/netpbm/pnmscale -xsize=300 -ysize=400 | /home/httpd/php/webapps/cmt/netpbm/ppmtojpeg > /home/httpd/php/webapps/cmt/public_html/images/articles/tmp.jpg
Tue 19 Oct 2004 13:44:35 BST - Error: Image, cr4[1].jpg had trouble being resized:  
 


All help and suggestions are greatly appreciated cheers
 Quote

All times are EST. The time is now 09:51 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content