Yet another: Unable to make thumbnail (0) 1and1 Internet.
|
erc
Joined: 2004-06-01
Posts: 3 |
Posted: Tue, 2004-06-01 22:29
|
|
I am unable to upload pictures (for the most part. I have uploaded two pictures that were very small in size, and didn't need to be resized) I realize this is a very common question, and I have searched and read for quite some time without figuring this out. I am using 1and1 Internet as my hosting company. I've read one other post by someone using 1and1 and they switched hosting companies before resolving the issue. Unfortunatly, 1and1 is a huge hosting company, and changing any php values is not an option. upload_tmp_dir does not have a value assigned to it; is there any way to work around this issue at all? My debug info is at the bottom of this post. I'm using Gallery version 1.4.3-pl1 You can see my full phpinfo here: The URL for my Gallery (in debug mode) is: The path on the server to Gallery is: I'm using NetPBM which is located here:
Processing status...
- Adding glynn.jpg
Resizing/compressing original image
Executing:
'/homepages/22/d92844527/htdocs/gallery/netpbm/jpegtopnm' '/homepages/22/d92844527/htdocs/gallery/albums/Washington-DC/glynn_001.jpg' | '/homepages/22/d92844527/htdocs/gallery/netpbm/pnmscale' -xysize 800 800 | '/homepages/22/d92844527/htdocs/gallery/netpbm/pnmtojpeg' --quality=90 > '/homepages/22/d92844527/htdocs/gallery/albums/Washington-DC/glynn_001.jpg.tmp'
Results:
none
Error messages::
jpegtopnm: WRITING PPM FILE
jpegtopnm: Error writing single byte sample to file
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
Status: 1 (expected 0)
Unable to preserve EXIF data (jhead not installed)
File /homepages/22/d92844527/htdocs/gallery/albums/Washington-DC/glynn_001.jpg type 2.
Executing:
'/homepages/22/d92844527/htdocs/gallery/netpbm/jpegtopnm' '/homepages/22/d92844527/htdocs/gallery/albums/Washington-DC/glynn_001.jpg' | '/homepages/22/d92844527/htdocs/gallery/netpbm/pnmscale' -xysize 150 150 | '/homepages/22/d92844527/htdocs/gallery/netpbm/pnmtojpeg' --quality=90 > '/homepages/22/d92844527/htdocs/gallery/albums/Washington-DC/glynn_001.thumb.jpg'
Results:
none
Error messages::
jpegtopnm: WRITING PPM FILE
pnmtojpeg: jpegtopnm: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
Error writing single byte sample to file
Status: 1 (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 |
|

Posts: 87
Hi erc
I'm using 1and1 as my host... and basicaly all is working fine.
what version of NetPbm are you using you can check it by excuting this http://www.caribou-maine.net/gallery/setup/check_netpbm.php (of course setup has to be 755).
I had some problems with the latest build from gallery so I just rely on the host by putting "/usr/bin" in the directory for netpbm and choosing ppmtojpeg
Posts: 3
Thanks, itcheg!
That did the trick. The help is much appreciated
- eric
Posts: 5
Erc,
I'm having similar problems migrating to 1and1 from another host. I'm not sure I understand your solution. Do you mean setting up a directory in the NetPBM folder on the webserver? And the NetPBM version I have only has pnmtojpeg, not ppmtojpeg.
I set up a folder in the NetPBM folder called /usr/bin but I can't get out of the configuration with NetPBM set to ppmtojpeg.
More documentation on my issue here: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=16193&highlight=
Thanks,
Sean
Posts: 87
DrThorsen,
Where setup asks you for the directory for NetPBM just type in /usr/bin which means it will take the NetPBM binaries from the host, and the host happens to use a version that uses ppmtojpeg. you don't have to upload any binaries if you do this as you are relying on 1and1
Erc
no problem glad to help.
Was just wondering did you upload jpegtran or are you relying on the host (I was having some trouble finding jpegtran for Linux on the web.
Posts: 5
Awesome. Thanks for the tip. Works perfectly.
Posts: 3
I'm not using jpegtran, but maybe what you're looking for is libjpeg; this library has a few programs for working with JPEGs, including jpegtran.
http://freshmeat.net/projects/libjpeg/
Posts: 87
erc,
Thanks for trying to help.
I went to the site and downloaded it. I found in there C source code files -which I would have no idea what to with them- and I found there jpegtran.1. I understood from the documentation that files with the *.1 extension are unix compiled files, so I uploaded it and removed the .1 extension but it didn't work for me.
Posts: 8194
Oh, yikes
.1 is for the man page (i.e. manual page); obviously, that's not going to work
. You could try to find some binaries on the Internet or find a box to compile them on (or possibly ask your host to?).
Posts: 5
Hi erc,
This is what worked for me. I installed ImageMagick and only used it for generating thumbnails. The NetPBM doesn't work well on 1and1's server. I'm using Gallery2. Here are the instructions to install ImageMagick from 1and1 support:
To install ImageMagik, first log in to your server with SSH. From the command line
first download and unzip the source:
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzvf ImageMagick.tar.gz
Change into the ImageMagik source directory (this represents the version number as
of this writing):
cd ImageMagick-6.2.5
The following commands will install ImageMagik into your home directory.
--without-perl and --without-ttf will disable perl and TrueType support; without
these switches the install will fail. /path/to/your/htdocs/im should be replaced
with the actual path to your home directory, and the last part, im, can be changed
to anything. The command "pwd" will tell you the present working directory.
./configure --prefix=/path/to/your/htdocs/im --without-perl --without-ttf
make
make install
When these steps are completed ImageMagik will be installed in your home directory.
Please note that since this is a non-standard location, you may have to modify the
configuration of other programs that use it so that they can find it. Any
executables will also not be on the default executable search path.
Hope this helps all that can't get the thumbnails working on 1and1.com