So you want to be able to autothumbnail gif images?
Are you having trouble with netpbm?
I answered yes to both of those questions at one time.
If you are tired of searching the forums, please read this. it should help you fix your problems.
1. Download netpbm from this location:
http://sniptools.com/av/netpbm.zip **LOCATION WAS UPDATED***
2. Unzip the files to your harddrive into a folder called netpbm.
The folder structure should look something like this.
3. Create a php file with the following contents, and name it path.php
<?php
if (empty($PATH_TRANSLATED)) {
$pathinfo = $SCRIPT_FILENAME;
}else{
$pathinfo = $PATH_TRANSLATED;
}
$lastseparator = strrpos($pathinfo,"/");
if (!$lastseparator) {
$lastseparator = strrpos($pathinfo,"\\");
}
$pathname = substr($pathinfo,0,$lastseparator+1);
print "Maybe this file is in <br> $pathname";
?>
This code came from the following thread, and was posted by lutz:
http://www.4homepages.de/forum/index.php?topic=7551&highlight=netpbm+path Make sure you save path.php INSIDE the netpbm directory
4. Now, open up an ftp client and ftp that directory (in its entirety) to your website, under the 4images folder (or whatever you called it).
The path should be:
www.yourwebsite.com/4images/netbpm5. Now, chmod the netbpm folder and ALL files in it to 777
6. In your browser, open up
www.yourwebsite.com/4images/netbpm/path.php It will output the probable path for netbmp.
Write that down, or copy and paste it somewhere, WITHOUT THE LAST /
7. Open up
www.yourwebsite.com/4images/admin in your web browser.
8. Scroll down to Conversion tool for thumbnail.
Choose NetPBM from the dropdown box.
9. Right under that it will say: If you have selected "ImageMagick" or "NetPBM", enter path and program name
10. Enter in the path that was given to you when you opened up path.php
REMEMBER TO LEAVE OFF THE LAST /
11. Scroll further down the admin page until you see Auto-create thumbnail
. Choose yes.
12. Please note, you need to store the images in the /4images/data/media/[number of the album] directory.
Go to
www.yourwebpage.com/4images/admin and choose Auto-thumbnailer. Then check the database for missing files.
13. Now, time to test it! Open up
www.yourwebsite.com/4images in your web browser and upload a photo. Upload a gif or jpg if you like. After you upload it, click on the category to make sure that the thumbnail was created. If you get an image of a grey eye with the file type, then you have done something wrong or this tutorial is totally off
Anyway, happy going to everyone. Questions or comments, please reply to this.
Moderators, if you wanna put this in the FAQ section or modify it, feel free to, just please give me credit
Good luck all.
Thanks pierro for the update