Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Beatnik (493)

Beatnik
  (email not shown publicly)
http://www.ldl48.org/

A 29 year old belgian who likes Mountain Dew, Girl Scout Cookies, Tim Hortons French Vanilla Flavoured Cappucinno, Belgian beer, Belgian chocolate, Belgian women, Magners Cider, chocolate chipped cookies and Perl. Likes snowboarding, snorkling, sailing and silence. Bach can really cheer him up! He still misses his dog.

Project Daddy of Spine [sf.net], a mod_perl based CMS.

In his superhero time (8.30 AM to 5.30 PM), he works on world peace.

Journal of Beatnik (493)

Wednesday July 21, 2004
07:23 PM

Paper Prepping

[ #19986 ]
I received an email from Petdance, providing me some very usefull tips and notes on the web app testing talk. Thanks!

While preparing the image manipulation paper, I decided to test my examples and bumped onto a rather critical bug in my code. I have

my $image = GD::Image->new($width,$height,1);

since the GD pod states

$image = GD::Image->new([$width,$height],[$truecolor]);

The optional third argument, $truecolor, tells new() to create a truecolor GD::Image object. Truecolor images have 24 bits of color data (eight bits each in the red, green and blue channels respectively), allowing for precise photograph-quality color usage. If not specified, the image will use an 8-bit palette for compatibility with older versions of libgd.


Now, I pressumed this was a boolean flag (since the POD was vague). It turns out you need to pass the bitrate you want your images in. Also, the trueColor fails to work. I'll send comments and testcase to LDS tomorrow...
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.