13
@tjnemez:
is /netpbm the fullpath to your netpbm? You need to enter the fullpath, not the relative. If it doesn't work with the fullpath try this:
open picmgmt.in.php in an editor.
Replace line 183-201:
case GIS_GIF:
$op_in = 'giftopnm';
$op_out = 'ppmtogif';
$cmd = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | ppmquant 255 | {$op_out} > $im_dest_file";
break;
case GIS_JPG:
$op_in = 'jpegtopnm';
$op_out = 'pnmtojpeg';
$op_out2 = 'ppmtojpeg';
$cmd = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$op_out} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
$cmd2 = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$op_out2} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
break;
case GIS_PNG:
$op_in = 'pngtopnm';
$op_out = 'pnmtopng';
$cmd = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$op_out} > $im_dest_file";
break;
with:
case GIS_GIF:
$op_in = 'giftopnm';
$op_out = 'ppmtogif';
$cmd = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}ppmquant 255 | {$xoopsModuleConfig['impath']}{$op_out} > $im_dest_file";
break;
case GIS_JPG:
$op_in = 'jpegtopnm';
$op_out = 'pnmtojpeg';
$op_out2 = 'ppmtojpeg';
$cmd = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}{$op_out} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
$cmd2 = "{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}{$op_out2} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
break;
case GIS_PNG:
$op_in = 'pngtopnm';
$op_out = 'pnmtopng';
$cmd = "{$xoopsModuleConfig['impath']}{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}{$op_out} > $im_dest_file";
break;
(newbb wraps the lines so be careful)
@svaha:
xcGallery uses a selfdefined $PHP_SELF varible. it' s defined in the init.inc.php line 73
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];
Maybe this $HTTP_SERVER_VARS are off in your php configration, please look into your phpinfo.
But, thanx reporting this, i will change it for the next release.