|
Posted by woddy on December 3, 2004, 6:43 pm
Please log in for more thread options
Hi Andy
Many thanks for your help!
Sorry it's taken me so long to reply.
I've been on holiday.
One of the problems I'm having is
the script is for an online auction website
and there are two scripts that make thumbnails
the first script below makes thumbnails of images hosted else-where.
The second code makes thumbnails of images uploaded from your
computer.
{
my ($q, $x);
$q= Image::Magick->new;
$x= $q->Read("$config/temp/$new_thumb_name");
warn "$x" if "$x";
$x = $q->Resize(geometry=>'75x53');
warn "$x" if "$x";
$x=$q->Write("$config/$new_thumb_name");
}
"Second code"
{
my ($q, $x);
$q= Image::Magick->new;
$x= $q->Read("$config/$form");
warn "$x" if "$x";
$x = $q->Resize(geometry=>'75x53');
warn "$x" if "$x";
$x=$q->Write("$config/$form");
}
What I need is to add a white background 75x53
that may or may not show
i.e. if an image is resized and is made less then 75x53pix
it will look like it has a border but the over all size will
be 75x53pix, but if an image is bang on 75x53
no border will show at all,
However because I use both codes I need to know how to add the changes
to the codes you see.
I hope I have explained that OK?
Many thanks for any help!
Best Regards
Woddy
--
woddy
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
|