/usr/local/bin/convert: No such file or directory

m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 15:35

Hi,

I set the debug mode on so I can see the errors..here is what I get

Processing status...
- Adding login.gif

Executing:

/usr/local/bin/convert -quality 95 -size 150x150 /hsphere/local/home/torontod/torontodancehall.com/albums/album33/login.gif -geometry 150x150 +profile "*" /hsphere/local/home/torontod/torontodancehall.com/albums/album33/login.thumb.gif

Results:

none

Error messages:

sh: /usr/local/bin/convert: No such file or directory

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ

Anyone have an idea how I can fix this??

 
m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 15:38

here are the config optoins

/* Constants */
$gallery->app->galleryTitle = "TORONTODANCEHALL GALLERY";
// optional <i>pnmDir</i> missing
$gallery->app->ImPath = " /usr/local/bin";
$gallery->app->graphics = "ImageMagick";
$gallery->app->highlight_size = "200";
// optional <i>zipinfo</i> missing
// optional <i>unzip</i> missing
// optional <i>use_exif</i> missing
$gallery->app->movieThumbnail = "/hsphere/local/home/torontod/torontodancehall.com/community/modules/gallery/images/movie.thumb.jpg";
$gallery->app->albumDir = "/hsphere/local/home/torontod/torontodancehall.com/albums";
$gallery->app->tmpDir = "/hsphere/local/home/torontod/torontodancehall.com/temp";
$gallery->app->photoAlbumURL = "http://www.torontodancehall.com/community/modules/gallery";
$gallery->app->albumDirURL = "http://www.torontodancehall.com/albums";
// optional <i>mirrorSites</i> missing
$gallery->app->showAlbumTree = "no";
$gallery->app->cacheExif = "no";
$gallery->app->jpegImageQuality = "95";
$gallery->app->timeLimit = "30";
$gallery->app->debug = "yes";
$gallery->app->use_flock = "yes";
$gallery->app->expectedExecStatus = "0";
$gallery->app->sessionVar = "gallery_session";
$gallery->app->userDir = "/hsphere/local/home/torontod/torontodancehall.com/albums/.users";

 
m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 15:55

hi...how can I switch this to use netPBM ?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-06-29 17:23

You can either edit config.php and change "ImageMagick" to "NetPBM" on the graphics line, or re-run the config wizard and make the settings there. You'll also need to set the $gallery->app->pnmDir variable to the path where NetPBM is installed. This is most easily done in the config wizard.

 
m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 17:28

Thanks signe

excuse my newbness with gallery...but..

Is NetPBM included with gallery or is it something I have to install myself?

Thanks

 
JaeSun
JaeSun's picture

Joined: 2003-06-27
Posts: 28
Posted: Tue, 2004-06-29 17:35

your host will probably have to install it for you .. unless you run your own box (server) ....

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-06-29 17:36

It's something you'll have to install yourself. We have packages available on the download page to make it easy, however. Download the files for your server's OS, upload them to the server, and make sure they're executable. (On UNIX, this means "chmod 755" the netpbm directory, and all the files in the netpbm directory)

 
m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 17:50

Ok I think its not..

should be easily to install I think..let me give it a go!

 
m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 18:01

Ok now I got this error

Executing:

'/hsphere/local/home/torontod/torontodancehall.com/netpbm/jpegtopnm' '/hsphere/local/home/torontod/torontodancehall.com/albums/album36/Blacks_Bday_069.jpg' | '/hsphere/local/home/torontod/torontodancehall.com/netpbm/pnmscale' -xysize 200 200 | '/hsphere/local/home/torontod/torontodancehall.com/netpbm/pnmtojpeg' --quality=95 > '/hsphere/local/home/torontod/torontodancehall.com/albums/album33/album36.highlight.jpg'

Results:

none

Error messages::

jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)No email sent as no valid email addresses were found
Not closing this window because debug mode is on

my config looks like this :

$gallery->app->graphics = "NetPBM";
$gallery->app->pnmDir = "/hsphere/local/home/torontod/torontodancehall.com/netpbm";
$gallery->app->pnmtojpeg = "pnmtojpeg";
$gallery->app->ImPath = " /usr/local/bin";
$gallery->app->autorotate = "yes";

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-06-29 18:04

That's not an error message.. just status. Looks like everything's working fine.

 
m8solutions

Joined: 2004-06-29
Posts: 17
Posted: Tue, 2004-06-29 18:16

woohoo

it works...thats great!!

Thanks alot!

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-06-29 18:19

Now just be sure and disable debug, by following the steps in FAQ 31 and setting debug to 'off'.