Click here to get back home

Image Magick code help

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Image Magick code help woddy 12-03-2004
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

------------------------------------------------------------------------




Similar ThreadsPosted
Image Magick code help November 29, 2004, 12:14 pm
image magick through apt-get November 27, 2004, 5:48 pm
Image magick palette July 30, 2004, 9:16 pm
Image::Magick newbie September 5, 2005, 10:19 pm
Errror in mod Image::magick or something else? October 29, 2005, 4:53 am
ANNOUNCE: Image::Magick::Tiler V 1.00 February 22, 2005, 11:35 am
ANNOUNCE: Image::Magick::Chart V 1.01 June 13, 2005, 3:36 am
Image::Magick scalar value to print use CGI April 13, 2006, 10:09 pm
Problems Installing Image::Magick September 26, 2006, 3:35 pm
Reduce colors with Image::Magick July 6, 2007, 7:06 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap