The code looks like:
Code: Select all
my $image = Image::Magick->new( density => $density,
units => 'PixelsPerInch' );
my $err = $image->Read( $input_path );
if ( "$err" ) {
$self->logger->logdie( "Read error: $err" );
}
$image->Write( $output_path );
The resulting PNGs have a gray background and seem to have acquired alpha/matte channels.
When I convert the same files via the command line using ImageMagick 6.9.0-9 Q16 x86_64 2015-03-02, I get what I want, black text on a white background.
This should be simple. How can I get what I want?
Thanks,
-J