Error: Unable to make thumbnail

mattyshack

Joined: 2004-10-20
Posts: 11
Posted: Tue, 2005-03-22 23:30

I am not a techie person so browsing the message boards, I found people with the same problem. But I don't know much about server configs. So, if you do decide to help me out, please do a little hand holding...

I am getting this error when tring to post to my gallery for the first time

Processing status...

- Adding IMG_0882.JPG
Resizing/compressing original image
No resizing required
Error: Unable to make thumbnail (0)

----
Gallery URL: http://www.evokelife.com/gallery
Gallery version: 1.4.4-pl6
Apache version: ???
PHP version: 4.3.10
Graphics Toolkit: NetPBM
Operating system: MAC OS
Web browser/version: Firefox

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-03-22 23:45

FAQ Gallery:c.31 and try a form based upload. Post the debug results.

 
mattyshack

Joined: 2004-10-20
Posts: 11
Posted: Wed, 2005-03-23 00:18

I was trying to do a form based upload when I got the error. Does this make a difference?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-23 00:26

Not a difference in what h0bbel wants you to do. Put your gallery in debug mode (so we get more information) and re-try the upload. The reason for picking the form based upload is that you actually get debug info back. If you used the mini-java applet thing, you wouldn't see any information so it would be totally useless to us (like the error message in your first post).

 
mattyshack

Joined: 2004-10-20
Posts: 11
Posted: Wed, 2005-03-23 00:27

OK here it is.

sh: line 1: /usr/local/netpbm/jpegtopnm: No such file or directory
sh: line 1: /usr/local/netpbm/pnmscale: No such file or directory
sh: line 1: /usr/local/netpbm/ppmtojpeg: No such file or directory

how do I get these items installed so they work correctly?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-23 00:29

From the SF download page, you should find some "netpbm" binaries. You probably want the linux intel ones. You'll have to put them in a directory, make them executable and point gallery to em. See the docs for more info.

 
mattyshack

Joined: 2004-10-20
Posts: 11
Posted: Wed, 2005-03-23 00:31

Why isn't this included in the standard install? Weird!?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-23 00:38

Well, take a moment and think about it.

If your host is windows, you need one set of binaries. If you host is linux, you need another. If your host uses an intel processor, you need one version of one set of binaries. If you host uses an Alpha processor, you need the other version of one set of binaries. If your host runs Solaris, you need a different set of binaries. If your host uses FreeBSD, you need yet another set of binaries.

What if your host already has these binaries installed? What if your host has ImageMagick installed instead? What if its YOUR server and you can install what ever version of IM or NetPBM you want?

Do you want Gallery to include 100mb of binaries for every platform, of which you only need 5-10mb or maybe even none of? Or maybe would you rather pick out the 5-10mb of binaries you need instead?

 
mattyshack

Joined: 2004-10-20
Posts: 11
Posted: Wed, 2005-03-23 00:42

OK, so I have downloaded those files, the directory it says to put them in is /usr/local/netpbm. Where on my server is that? is that in the gallery/netpbm? or at the root directory under public_html/

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-23 00:46

You are mistaken, gallery is not telling you to put them in /usr/local/netpbm... it is telling you that IT thought they might be there, but in the end YOU have to tell it where they are.

So if the path to your /albums/ dir is "/home/username/public_html/albums" then I would suggest you put your netpbm binaries in "/home/username/netpbm" if you can (because this is not accessible from the web, no one will be able to just run the netpbm binaries) and if you cannot put them there, put them in "/home/username/public_html/netpbm". You will then have to make sure they are marked executable (something like "chmod 777 *" inside the netpbm directory from your ftp client should do it) and THEN you'll need to tell gallery EXACTLY where you put them.

IF you have FULL access to your web server (which you probably don't), you could potentially put them in /usr/local/netpbm, but I thing you are going to be doing the former, not the latter :)

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-23 00:48
 
mattyshack

Joined: 2004-10-20
Posts: 11
Posted: Wed, 2005-03-23 01:00

Worked, finally, thanks fryfrog, tak h0bbel

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-23 01:24

np, glad you are up and going :)