On Fri, 11 Nov 2005 09:02:10 +0200, in comp.lang.perl , "Serge A.
Ribalchenko" <I_***********************@uch.net> in
<20051111090210.48648737.I_*********************** @uch.net> wrote:
On Fri, 11 Nov 2005 02:46:57 GMT
Matt Silberstein <Re**************************@ix.netcom.com> wrote:
All I want to do is some little thumbnails, what do I do?
I did it using 'Imagemagick' module.
usage example (cut'n'pasted from big scripture):
use Image::Magick;
[...]
sub gen_malgranda ($$) {
my $x = Image::Magick->new(size=>'160x160');
$x->Read('NULL:white');
my $p = Image::Magick->new;
$p->Read("$_[0]/$_[1]");
$p->Scale("160x160");
$x->Composite(image=>$p,gravity=>'center');
$x->Write("$_[0]/malgranda/$_[1]");
undef $p, $x;
}
[...]
mkdir "/home/user/store/jpeg/malgranda";
gen_malgranda("/home/user/store/jpeg","somefile.jpeg");
Well, I did not even get to try this. I figured I would put this on
the Linux server it will end up on and that system had Imager great.
But that system did not have ConfigReader::Simple. So I figured I
would install that. Now I am all screwed up. Because
ConfigReader::Simple required something else, which required something
else. And I don't have root (a good thing for me) so I was doing a
local install of the modules. Well, that got messed up, so I tried to
back it out. Now I can't install anything.
I was following instructions here:
http://www.perl.com/pub/a/2002/04/10/mod_perl.html to do the install,
downloading from cpan.org. The stuff should have gone into my
/home/me/lib and /home/me/bin. I tried to clear those out (they only
had the stuff I had just added, this is a new hosting server for me).
Now I gather that the Perl makefile kind of things I have these
things, so it won't build a makefile, but I don't really. Any
suggestions?
TIA.
--
Matt Silberstein
Do something today about the Darfur Genocide
http://www.beawitness.org http://www.darfurgenocide.org http://www.savedarfur.org
"Darfur: A Genocide We can Stop"