Unable to make thumbnail(0)
|
tzimel
Joined: 2003-06-28
Posts: 8 |
Posted: Sat, 2003-06-28 08:53
|
|||
|
Hello. - Adding kon_0001.jpg "C:\Program Files\EasyPHP\www\ImageMagick\convert" -quality 85 -size 150x150 "c:\program files\easyphp\www\albums\album01\kon_0001_001.jpg" -geometry 150x150 +profile '\*' "c:\program files\easyphp\www\albums\album01\kon_0001_001.thumb.jpg" Results: Error messages: Status: 1 (expected 0) thanks
|
||||
| Login or register to post comments |

Posts: 13452
tzimel, uninstall ImageMagick, and reinstall it in a path without spaces. Not in program files, but in c:\apps\ImageMagick or something similiar. That should do it.
Posts: 8
I've done what you told me and now i get the error with diferrent status:
- Adding kon_0001.jpg
Executing:
C:\ImageMagick\convert -quality 85 -size 150x150 "c:\program files\easyphp\www\albums\album01\kon_0001_002.jpg" -geometry 150x150 +profile '\*' "c:\program files\easyphp\www\albums\album01\kon_0001_002.thumb.jpg"
Results:
none
Error messages:
Status: 0 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ
Thanks
Posts: 13452
What happens if you try running the command "by hand" in a cmd prompt?
Posts: 8
When typing command
C:\Documents and Settings\Elias>c:\ImageMagick\convert -quality 85 -size 150x150 "c:\program files\easyphp\www\albums\album01\kon_0001_002.jpg" -geometry 150x150 +profile '\*' "c:\program files\easyphp\www\albums\album01\kon_0001_002.thumb.jpg"
it gives me:
c:\ImageMagick\convert: Unable to open file (c:\program files\easyphp\www\albums
\album01\kon_0001_002.jpg).
I notice that in the album01 directory thge images have been created corectly but i can't see them in the gallery.
Posts: 13452
Hmm, this is weird. But, the command will fail if there is no image called kon_0001_002.jpg in that dir.
Du you have an url and maybe a test user account? PM me details and i'll have a look, if you want?
Posts: 8
I don't have a url, i use easyPHP on my computer.
I don't understand why ImageMagick creates the images but not show them on the gallery module?
Thanks for your help.
Posts: 8
I notice what you told me that if there is no image called kon_0001_002.jpg in the dir the command will fail, so i put the image with that name there and the command worked. What does that mean. Can i do something to fix my problem?
Thanks.
Posts: 13452
Hmm, that means that imagemagick works as it should now. It is able to create the thumbnails as it should. Now, that seems to indicate either a permissions problem on your albums directory (not likely since you are on windows, and since you stated that the images actually DO appear in the albums dir). Try uploading a picture, and then have a look at your apace error_log, post the last few lines here and maybe we could work it out.
Posts: 8
I will try to be as analytic as i can and sorry for the mess.
The image i select from "add photo" is in "c:\Docs\Elias\Pictures\Diafores\kon_0001.jpg"
but convert tries
c:\ImageMagick\convert -quality 85 -size 150x150 "c:\program files\easyphp\www\albums\album01\kon_0001.jpg" -geometry 150x150 +profile '\*' "c:\program files\easyphp\www\albums\album01\kon_0001.thumb.jpg"
Is that a problem? When running the command from the command line it's unable to open the file from program Files although i selected it from c:\docs\elias\pictures\diafores\. I noticed that it creates the thumbnail file correctly, but i don't see the actual file that i select in the albums directory.
As for the error_log i clear it and rerun the "add photo" and i found nothing in it.
Thanks.
Posts: 13452
Ok, O'm not 100% sure i follow you now.
You get nothing in your error_log, and still the picture does not appear in your gallery?
Try using NetPBM instead of Imagemagick, it's an easy install. Download the windows binaries ftrom the download page, unzip it to c:\apps\netpbm and set the path to that in the config wizard. Remember to change what imageprocessor you use in the config, and save. Try to upload again.
Posts: 8
Ok now but i have this error:
This application has failed to start because libjpeg.dll was not found. Re-installing the application may fix this problem.
What to do?
Thanks.
Posts: 8
Ok i downloaded the libjpeg extract it and took the dll's put them in the netpbm dir and everything worked fine.
Thanks you very much.
Posts: 13452
Great stuff! Hope you enjoy Gallery!
Posts: 5
HOW I GOT GALLERY TO RUN ON WINDOWS 2000 and IIS 5.0
My setup:
Windows 2000 Advanced Server
IIS 5.0
PHP v4.3.2
Gallery v1.3.4
netPBM v10.6 with libjpeg.dll added
I was getting these unable to create thumbnail(0) errors until until I did this:
Solution: I replaced the NetPBM Binaries linked to in your requirements page with this: http://prdownloads.sourceforge.net/gnuwin32/netpbm-10.6-bin.zip?download which is version 10.6 executables from SourceForge and added libjpeg.dll from http://prdownloads.sourceforge.net/gnuwin32/libjpeg-6b-bin.zip to the NetPBM bin directory.
For some reason, the netPBM files that are recommended on the installation page wouldn't work for me at all. As soon as I used this different version, bammo, worked every time. I also tried it without the libjpeg.dll and it still gave me the Status: 1 error unable to create thumbnails(0) error.
You only need the files from the bin dir when you unzip the alternate netpbm file. I put all those, the libjpeg.dll, and the jhead.exe all in the same dir and it was all fine.
Hope this help some people out there... It was driving me nuts.
-Jaime
Posts: 12
I moved my domain to a new server and have begun to reinstall gallery. I tried these new binaries you mentioned Allistah, but they all had file extensions of .exe.
When I tried to upload images with the file extensions in place, I got a "no such file or directory" error.
I renamed all the files (including the .dll) so that they had no file extensions at all. Then I get the message "Cannot execute binary file."
With the original Netpbm binaries that are indicated on the requirements page, the gif images uploaded and displayed properly, but the jpgs all came out with the EOF: Error reading magic number.
With the new binaries, nothing works. Hmmm....
Here's my PHP Info page if you need it: http://www.bloodsilver.com/phpinfo.php
I appreciate any assistance. I've been bashing my head for months trying to get gallery to work.
Posts: 13452
Morgramen, your server is running linux, and thus you need the binaries for linux, not windows.
Download netpbm1.1-gallery1.0-linux2.2-redhat6.2-intel.tgz
Posts: 12
Thanks H0bbel, but with those binaries, I end up with the:
Error messages:
pnmscale: EOF / read error reading magic number
ppmtojpeg: EOF / read error reading magic number
Status: 1 (expected 0)
Error: Unable to make thumbnail (0)!
I think I need the 10.6 binaries for a Linux system. I followed the instructions in the FAQ for that, but it defaults me to download the same 10.6 binaries as Allistah downloaded (which I assume are for a Windows 2000 server.)
Posts: 13452
From the phpinfo you provided: Linux daffy.perf.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 i686 unknown. That is clearly a Linux system. And to verify, i ran a Netcraft survey on www.bloodsilver.com and that reports: Apache/1.3.27 (Unix) (Red-Hat/Linux) FrontPage/5.0.2.2623 mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26
Seems to indicate that the binaries are beeing executed, which they would not be if they where for the wrong architecture. That error has been reported lots of times, try searching the forums.
If your are indeed using a windows server, and nothing indicates that you do, you need the Windows binaries,, but there is no need to remove the .exe ending, nor the .dll - That would infact break them.
Posts: 12
I think we have a miscommunication. :D
I know I am running a Linux system, but what I am saying is that the binaries that you linked, do not seem to be executing properly. (The EOF: Reading Magic Number error).
I've had this problem for a while now, and I've scoured the forums for an answer. The closest I've come to is the solution mentioned in this thread by Allistah (upgrading the Netpbm binaries). The problem with trying it out, is that the 10.6 binaries are (I assume) for a Windows 2k server, while I am on Linux.
I've been searching Sourceforge for Netpbm 10.6 binaries for Linux, but not having much luck I'm afraid. :-?
Thanks though, I appreciate that you're trying to help me out.
Posts: 8187
That FAQ doesn't matter if you're using Linux or some other non-windows. Don't try to use Windows binaries if you're on Linux, no matter what the FAQ says (there is obviously another cause for this error).
Posts: 1
I had this problem as well. However I think I have tracked the problem down.
The problem is that the image is invalid! For some reason browsers like IE can view them (since MS dont follow the rules normally :wink: )!
Try opening the image in Photoshop. I get an error of invalid file format.
STOP PRESS
========
I renamed the images that was causing the problems to .jpeg and it works. Looks like who ever sent me the image gave it the wrong file extention.
Regards
Jonathan
Posts: 3
I am getting the SAME error message here. I have the correct binaries for a Linux server, uploaded them in binary format, and changed the CHMOD etc. I dont understand why its not working. I get the same EOF error.
Funny - if the image doesnt require a resize - it works ok. Its NOT the image - it opens in every other program I have - and I have tried various images.
Posts: 25
I was directed to this thread from the Install FAQ for the "read error reading magic number" error, and it links to a separate binary for NetPBM. However, in downloading it, the files appear to be for a Windows install (thus the subsequent reference to a .dll file). However, I'm running Gallery on Linux. What should I do?
Posts: 25
I tried a fresh install of the Linux NetPBM binaries from the Gallery download page. I noticed then that I had to change my converter in the configuration screens from ppmtojpeg to pnmtojpeg. Doing this, I then got a slightly different error in attempting to upload a new image: "Error reading magic number from Netpbm image stream."
It goes on to say that perhaps my source file (a JPG uploaded via the form) was empty, but that's doubtful - I verified the file's soundness in Photoshop.
The error when adding an image is:
jpegtopnm: WRITING PPM FILE
jpegtopnm: pnmtojpeg: Error writing single byte sample to fileError reading magic number from Netpbm image stream. Most often, this means your input file is empty.
The error when highlighting an image is:
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.
Posts: 1
I had the same problem with imagemagick, receiving
Error: Unable to make thumbnail (0)!
every time i tried to upload an image... I traced down the problem and their is a big somewhere in the code (didn't dig to find it) but the simple fix is to modify config.php (dont use the setup tool!!) and manually add a trailing "\" to the end of the path for imagemagick.
the problem is its trying to call the executable but it isn't adding a trailing slash so it calls like such C:\imageMagickconvert.exe.......
Posts: 9
Hi Allistah,
I tried ur way.. but i get following error
-----------------------
- Adding one of the lake.jpg
Resizing/compressing original image
No resizing required C:\netpbm\pnmtojpeg: ;s\one_of_the_lake.thumb.jpg - No such file or directory C:\netpbm\pnmscale: Error writing single byte sample to file C:\netpbm\jpegtopnm: Error writing single byte sample to file
Error: Unable to make thumbnail (0)
Need help? Look in the Gallery FAQ
-----------------------
pls. let em know how i should solve this problem.
Thanx
~Anand AParanjape
Posts: 19
I had this same exact problem on my Linux Server when trying to use ImageMagick.
Gallery reports that IMageMagick is fine and that I can use it. However I get same error as everyeon else here.
Solution:
Download and use netpbm binaries for Linux
http://prdownloads.sourceforge.net/gallery/netpbm1.1-gallery1.0-linux2.2-redhat6.2-intel.tgz?download
I uploaded those binaries to my netpbm path. Told gallery to use netpbm instead of ImageMagick and viola. Works.
Hope this helps others.