View Full Version : Picture archive script
fury
July 11th, 2001, 19:44
Hi all,
I am about to start writing a perl script for a picture gallery that I want to put up. I have lots of pictures but I don't want to have to resize each one of them to make thumbnails.
Is there some certain function, module, or library I can use that will allow me to manipulate gifs and jpegs? Basically I want to read in all my images, resize them, then output the thumbnails to a separate directory..
thanks..
bigperm
July 12th, 2001, 06:26
I am pretty sure that there is... I have no idea what it is, or how to use it though.
That was my least helpful post...:(
lucifer
July 12th, 2001, 06:50
you can do it. I'm not sure where the fn's are though.
gif's are a real problem due to the license so you may not be able to do them. Compuserve have stopped all free distributions of gif constructors.
you may find it much easier to get a batch editing program - one was recently mentioned here but I can't remember it's name
Weapon
July 13th, 2001, 02:04
make it so that the pictures/files are anti-leechable and send me the script :D :D :D :D
lucifer
July 13th, 2001, 04:10
Originally posted by Weapon
make it so that the pictures/files are anti-leechable and send me the script :D :D :D :D weep-on this is just for making the pics not serving them up
Dusty
July 13th, 2001, 04:40
You want the GD Graphics Library. If your graphics are GIFs you'll need an old version, but if they're PNGs or JPEGs a recent release is fine.
http://www.boutell.com/gd/
lucifer
July 13th, 2001, 04:54
does anyone have an old gif usable one?
fury
July 13th, 2001, 09:38
Originally posted by Dusty
You want the GD Graphics Library. If your graphics are GIFs you'll need an old version, but if they're PNGs or JPEGs a recent release is fine.
http://www.boutell.com/gd/
Hmm, that site doesn't seem to work for me.
I have an old CD full of perl modules collected in 1998. I have versions of GD from 1.15 to 1.18. I briefly read the readme file for GD 1.15 and it says it can create gif files. I'll look into it further when I have time this weekend.. I post up the files so you guys can grab them..
fury
July 13th, 2001, 09:48
ok, that site works if I use an anonymizer service, must be something wrong with my connection there..
anyway, I posted GD versions 1.15 to 1.18 all in one zip file for anyone to download.
http://fury.netfirms.com/GD.zip
lucifer
July 13th, 2001, 10:36
Originally posted by fury
anyway, I posted GD versions 1.15 to 1.18 all in one zip file for anyone to download.:cool: Thanks :)
fury
July 16th, 2001, 21:45
damn netfirms!!! they disabled my account because I posted that file. according to my bandwidth stats, only one lucky person was able to download it..
ah well, doesn't matter anyway. I'm already with a paid host. if anyone else wants the file, let me know and i'll post it up somewhere else...
meow
July 16th, 2001, 21:51
I'm just curious, too dumb for this sort of ----. Isn't there also something called ImageMagick or similar?
Weapon
July 16th, 2001, 23:34
Originally posted by lucifer
weep-on this is just for making the pics not serving them up
wrong!!!! he said (in his exact words) "I am about to start writing a perl script for a picture gallery that I want to put up" and that is what I am asking for
fury
July 16th, 2001, 23:57
yes, I meant both, the script will create the thumbnails and generate the appropriate HTML code to link the thumbnails to the regular sized ones. but the serving part is not my main challenge though
As for the anti-leech part, I thought of several things, one was to have a cron job rename the files and rebuild an index file once a day at around 3am in the morning. Otherwise, I might take a peep at some antileech scripts out there and see what tricks they use.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.