stormwolfen has asked for the wisdom of the Perl Monks concerning the following question:
use GD; my $image = GD::Image->newFromJpeg('d:\cards\test.jpg'); my $black = $image->colorResolve(0,0,0); my ($width,$height) = $image->getBounds(); $image->rectangle(0,0,($width-1),($height-1),$black); binmode FILE; open(FILE, ">border1.jpg"); print FILE $image->jpeg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Corrupt JPG image in Windows
by Sidhekin (Priest) on Dec 14, 2001 at 21:54 UTC | |
|
Re: Corrupt JPG image in Windows
by cacharbe (Curate) on Dec 14, 2001 at 21:59 UTC | |
|
Re: Corrupt JPG image in Windows
by stormwolfen (Acolyte) on Dec 14, 2001 at 22:11 UTC |