'unable to make thumbnail (0)'

theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 15:57

i cant upload pics. i think the netpbm thingy is not installed. but how to do when my server installed the gallery for me?
----
the gallery is installed from fantastico in my cpanel on my server.

www.airbornehjem.com/gallery
Gallery version: (1.4.3-pl2)
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit: the c panel dosnt say
Operating system: my OS is win xp. the servers is Linux
Web browser/version (if applicable): Avant browser

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-22 20:47

FAQ Gallery:c.31

Enable debug, try an upload using the form, and paste the results.

 
paddy
paddy's picture

Joined: 2003-10-17
Posts: 13
Posted: Thu, 2004-07-22 21:47

having a similar problem. I've always used 1.34 and now I'm using 1.43 and there seems to be an issue with making thumbnails

have enabled debugging -

Processing status...

- Adding 2002_0902_234246AA.JPG
   Resizing/compressing original image
   No resizing required
File /home/irishvib/public_html/albums/album01/2002_0902_234246AA.jpg type 2.

Executing:

      '/home/irishvib/public_html/netpbm/jpegtopnm' '/home/irishvib/public_html/albums/album01/2002_0902_234246AA.jpg' | '/home/irishvib/public_html/netpbm/pnmscale' -xysize 150 150 | '/home/irishvib/public_html/netpbm/ppmtojpeg' --quality=90 > '/home/irishvib/public_html/albums/album01/2002_0902_234246AA.thumb.jpg'


Results:

none


Error messages::

sh: line 1: /home/irishvib/public_html/netpbm/jpegtopnm: Permission denied
sh: line 1: /home/irishvib/public_html/netpbm/pnmscale: Permission denied
sh: line 1: /home/irishvib/public_html/netpbm/ppmtojpeg: Permission denied


Status: 126 (expected 0)
Error: Unable to make thumbnail (0)!

not sure where to go - the paths are all correct.. chmod of netpbm folder tried at 755 and 777. any ideas?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-22 21:51

You had the right idea, but you need to chmod the files *in* the folder as well...

so,

Quote:
chmod 755 netpbm
cd netpbm
chmod 755 *

 
paddy
paddy's picture

Joined: 2003-10-17
Posts: 13
Posted: Thu, 2004-07-22 22:01

that helped- wish I'd thought of it myself

still afew arithmethic bugs but it's working

cheers

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 22:19

Processing status...

- Adding DSC00401.JPG
Resizing/compressing original image
No resizing required
File /home/airborne/public_html/gallery/albums/bmx/DSC00401_006.jpg type 2.

Executing:

'imagemagick/convert' -quality 90 -size 150x150 +profile '*' '/home/airborne/public_html/gallery/albums/bmx/DSC00401_006.jpg' -geometry 150x150 '/home/airborne/public_html/gallery/albums/bmx/DSC00401_006.thumb.jpg'

Results:
none

Error messages::
sh: line 1: imagemagick/convert: No such file or directory

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ No email sent as no valid email addresses were found

........................i hav waited now 49 minutes to upload imagemagick. and now it cant convert.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-22 22:21

You need to use a full path to the files in the config wizard.

"/home/airborne/imagemagick/" (or whatever is appropriate)

A relative path ("imagemagick") will not work.

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 22:22

its in the public_html area. were i have index, gallery, guestbook. and all that stuff

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 22:31

it look like , inside the imagemagic folder. theres no convert folder. or a file that have the name

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-22 22:36
 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 23:03

Processing status...

- Adding DSC00401.JPG
Resizing/compressing original image
No resizing required
File /home/airborne/public_html/gallery/albums/bmx/DSC00401_006.jpg type 2.

Executing:

'/home/airborne/public_html/imagemagick/convert' -quality 90 -size 150x150 +profile '*' '/home/airborne/public_html/gallery/albums/bmx/DSC00401_006.jpg' -geometry 150x150 '/home/airborne/public_html/gallery/albums/bmx/DSC00401_006.thumb.jpg'

Results:
none

Error messages::
sh: line 1: /home/airborne/public_html/imagemagick/convert: No such file or directory

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ No email sent as no valid email addresses were found

as i say. look like the image magick directory havnt the convert thingy. u got an link to one that work? cuzz i only searched the net

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-22 23:06

We don't provide ImageMagick because it often relies on too many external factors.

You can download NetPBM from our download pages and switch to using that.

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 23:07

when i am done with config. it says u got one error. u need netpbm 9.9 or higher.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-22 23:39

Did you extract and upload the NetPBM files from our site? All of our files are 9.9 or higher.

Run the setup/check_netpbm.php script and see what it says.

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Thu, 2004-07-22 23:43

i downloaded form here yes

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Fri, 2004-07-23 00:28

but it still not look like it is version 9.9 or higher. i got the samae error with the netpbm

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Fri, 2004-07-23 00:54

now i downloaded this netpbm_gallery-1.4-pl2-freebsd-4.8.zip and uploaded it to my server. and still get this error:

Error: I can't find NetPBM at the location you provided. Gallery prefers NetPBM version 9.9 and up. You can install just the binaries Gallery needs from the Gallery Download Page. Or, you can compile and install the entire NetPBM package from the NetPBM website.
Note: You can install the binaries from the Gallery site even if you don't have root access on your box! If you can't get it working, try leaving the NetPBM path blank and using ImageMagick instead.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-23 01:17

Did you unzip the file, first?

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Fri, 2004-07-23 01:18

ofcourse i did

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-23 01:22

Well, you didn't mention that.

Where did you upload it to? Did you set that path in the config?

Have you contemplated paid support?

 
theflatlander

Joined: 2004-06-15
Posts: 11
Posted: Fri, 2004-07-23 01:25

/home/airborne/public_html/netpbm. i set that path in the configureation wizard. pid support. hmm. my credit card doesnt work online yet.

 
furthurmore

Joined: 2003-12-27
Posts: 5
Posted: Fri, 2004-07-23 17:22

I am getting the same error when I try to upload pics also. It seems to be a issue with the new version of gallery and the apache version I am running. I have netpbm and imagemagkic installed correctly. When I get to the Install screen before installing everything is green except lang. here is my output from the debug

FreeBSD 5.2.1
Apache 1.3.31
PHP 4.3.8

Processing status...

- Adding DSC01251.jpg
Resizing/compressing original image
No resizing required
File /usr/local/apache/htdocs/gallery/albums/album01/DSC01251_001.jpg type 2.

Executing:

'/usr/local/bin/convert' -quality 100 -size 250x250 +profile '*' '/usr/local/apache/htdocs/gallery/albums/album01/DSC01251_001.jpg' -geometry 250x250 '/usr/local/apache/htdocs/gallery/albums/album01/DSC01251_001.thumb.jpg'

Results:
none

Debug messages::
convert: no decode delegate for this image format `/usr/local/apache/htdocs/gallery/albums/album01/DSC01251_001.jpg'.
convert: missing an image filename `/usr/local/apache/htdocs/gallery/albums/album01/DSC01251_001.thumb.jpg'.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-23 18:07

There isn't an issue with Gallery and Apache.

The problem you are seeing is that your ImageMagick is missing libraries it needs to decode some image formats. You should re-install ImageMagick from ports and make sure and select all of the available libraries when it gives you the option. If that doesn't work, install the netpbm port.

If this isn't your server, then you should download netpbm from our download pages, and configure using that.

 
furthurmore

Joined: 2003-12-27
Posts: 5
Posted: Fri, 2004-07-23 18:57

Thanks for taking the time to leave a message. I will give this a try and reply my findings.

- Jeff

 
furthurmore

Joined: 2003-12-27
Posts: 5
Posted: Fri, 2004-07-23 19:01

Works Like A Charm -

Reinstalled ImageMagick - ImageMagick-6.0.2.7 from the BSDPorts.

Here is the debug output from the sucess upload.

Processing status...

- Adding DSC01250.jpg
Resizing/compressing original image
No resizing required
File /usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.jpg type 2.

Executing:

'/usr/local/bin/convert' -quality 100 -size 250x250 +profile '*' '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.jpg' -geometry 250x250 '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.thumb.jpg'

Results:
none

Debug messages::

Status: 0 (expected 0)
Executing:

'/usr/local/bin/jhead' '/usr/local/apache/htdocs/gallery/temp/gallerynkATrk'

Results:
File name : /usr/local/apache/htdocs/gallery/temp/gallerynkATrk
File size : 2907527 bytes
File date : 2004:07:23 10:00:46
Camera make : SONY
Camera model : DSC-F828
Date/Time : 2004:06:01 21:32:43
Resolution : 3264 x 2448
Flash used : No
Focal length : 7.1mm
Exposure time: 0.077 s (1/13)
Aperture : f/2.0
ISO equiv. : 64
Exposure bias:-0.30
Whitebalance : cloudy
Metering Mode: spot
Exposure : program (auto)
Jpeg process : Baseline

Debug messages::

Status: 0 (expected 0)
Executing:

'/usr/local/bin/convert' -quality 100 -size 200x200 +profile '*' '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.jpg' -geometry 200x200 '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.highlight.jpg'

Results:
none

Debug messages::

Status: 0 (expected 0)
- Resizing DSC01250_002
Executing:

'/usr/local/bin/convert' -quality 100 -size 1024x1024 +profile '*' '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.jpg' -geometry 1024x1024 '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.sized.jpg'

Results:
none

Debug messages::

Status: 0 (expected 0)
Executing:

'/usr/local/bin/jhead' '/usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.jpg'

Results:
File name : /usr/local/apache/htdocs/gallery/albums/album01/DSC01250_002.jpg
File size : 2907527 bytes
File date : 2004:07:23 10:00:46
Camera make : SONY
Camera model : DSC-F828
Date/Time : 2004:06:01 21:32:43
Resolution : 3264 x 2448
Flash used : No
Focal length : 7.1mm
Exposure time: 0.077 s (1/13)
Aperture : f/2.0
ISO equiv. : 64
Exposure bias:-0.30
Whitebalance : cloudy
Metering Mode: spot
Exposure : program (auto)
Jpeg process : Baseline

Debug messages::

Status: 0 (expected 0)
No email sent as no valid email addresses were found

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-23 19:03

Looks perfect... you can (and should) disable debug now that everthing's working.