missing pnmtojpeg in the gallery netpbm binaries

eyeonall

Joined: 2002-08-20
Posts: 3
Posted: Tue, 2002-08-20 21:28

I have three of these guys installed and for reason this one on this web hosting provider keeps failing. I even recompiled the linux binaries with 2.96 and the 02 option (still got the --quality error) then with 2.95 and got some error saying --allimages needs an argument. I also just uploaded the missing binary and still get the --quality error and I am sure I used 2.95.3. So now I turn to you folks. Any suggestions...

Thanks in advance...

Using the binaries provided got me the error below..

Executing:

/home/dcnitesd/www/www/V3/photos/netpbm/jpegtopnm /home/dcnitesd/www/www/V3/photos/albums/album01/Busted_on_Sept11.jpg | /home/dcnitesd/www/www/V3/photos/netpbm/pnmscale -xysize 150 150 | /home/dcnitesd/www/www/V3/photos/netpbm/pnmtojpeg --quality=95 > /home/dcnitesd/www/www/V3/photos/albums/album01/Busted_on_Sept11.thumb.jpg

Results:
none

Error messages:
jpegtopnm: WRITING PPM FILE
sh: /home/dcnitesd/www/www/V3/photos/netpbm/pnmtojpeg: No such file or directory
pnmscale: Scaling by 0.300000 horizontally to 150 columns.
pnmscale: Scaling by 0.299479 vertically to 115 rows.
pnmscale: 0.000000 of right column stretched due to arithmetic imprecision
pnmscale: Error writing single byte sample to file
jpegtopnm: Error writing single byte sample to file

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-08-21 16:16
Quote:
sh: /home/dcnitesd/www/www/V3/photos/netpbm/pnmtojpeg: No such file or directory

This typically happens when you swap out NetPBM binaries and edit the config.php, but don't run the config wizard. There was a name change in NetPBM v9.19 where they changed "ppmtojpeg" to "pnmtojpeg". The micro distro that we provide uses the old name, and the config wizard is smart enough to detect this. So, you can either run the config wizard and let it fix this, or you can edit config.php and change:

$gallery->app->pnmtojpeg = "pnmtojpeg";

to

$gallery->app->pnmtojpeg = "ppmtojpeg";

 
eyeonall

Joined: 2002-08-20
Posts: 3
Posted: Wed, 2002-08-21 16:49

oddly enough, turns out I have another gallery on the same web host and that did work. I used the config wizard but I must have missed something..

Well all is good. I made the manual change to the config.php.

Thanks a million!