View Full Version : Fun perl problems....
infinity
05-10-1999, 01:58 AM
Ok, I am making a script that make thumbnails and pages for them and all this other good stuff....
The problem is this, after searching for around 2 days, I have yet to find a simple library that I can pass out (like cgi.pm) or any other way to resize the images without using a bunch of complex, c++ installed programs.[nbsp][nbsp]If you happen to know of a way to resize images that is not insane (in perl) please... tell me where I can get the code.
Thanks!
------------------
Ted Sindzinski
Infinity Internet & SOlution Scripts
http://infinityinternet.com
http://solutionscripts.com
Terra
05-10-1999, 05:17 AM
As I humbly bow before the mighty Randal L. Schwartz, and make this offering with his blessing...
http://www.webtechniques.com/cgi-bin/listings/1999/01/perl.lst
--
Terra
--Just what the heck does JAPH mean???-- ;)
FutureQuest
[This message has been edited by ccTech (edited 05-10-99)]
Oh sheeeshhh....
Terra, go to bed ;)
Terra
05-10-1999, 05:30 AM
Second Part: actually compressing the images...
I don't think your going to get very far without the GD library to perform the manipulations...
I can't find a truly portable way to pull this off, but I'm sure with a lot of time to disect the .gif format you might be able to reverse-engineer into pure perl by manipulating the raw hex via packs/unpacks and lots of bit fiddling...
You might also want to look at 'GIFgraph' module library, but I believe it is based on GD as well...
--
Terra
--What flavor of *nix do you want to fight with today?--
FutureQuest
Justin
05-10-1999, 12:05 PM
bit fiddling
Sorry, just woke up and found that hilarious :)
--Just what the heck does JAPH mean???--;)
I know you know the answer to that, but please tell me that no one has actually asked that?! Heck, I even know what it stands for hehehe
Del
infinity
05-11-1999, 01:06 AM
I've thought about using the GD library, question is, how standard is it?[nbsp][nbsp]I mean this script will be freeware so I want most people with cgi access to be able to use it, that's the main problem..
Terra
05-11-1999, 02:00 AM
It all depends on the server...
I had to compile/install it manually into the FQuest server as it is XS style module...
Most all graphics manipulation modules will be XS in nature...[nbsp][nbsp]I don't think your going to find an easy way out on this... :(
--
Terra
--On or Off, how easy can that be?--
FutureQuest
jenili
05-11-1999, 02:02 AM
FWIW:
Boutell's gd library isn't part of the standard perl install, so far as I know, but it's the standard for working with graphics in perl. There may be other graphics modules out there that aren't based on it, but I don't know of them.
------------------
jeni
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.