I had success with the newFromJpeg constructor, with the $truecolor flag set to 1.
my $im = GD::Image->newFromJpeg( $jpg, 1 );
It was quite educational to run the identify -verbose command (from the ImageMagick suite) on the "before" and "after" images.
In reply to Re^4: Perl GD problem with colors for text
by gmargo
in thread Perl GD problem with colors for text
by natol44
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |