Wrong and different background converting pdf to png or tiff
Posted: 2011-03-18T05:37:13-07:00
When converting "usual" pdf files to png and/or tiff convert renders different (wrong) background.
By "usual" pdf files I mean pdf files that look like black text on white paper but in fact are black text on transparent background.
But of course these pdf files are normally (by pdf readers) rendered as black text on white background.
Anyway, doing e.g.
you get png files with gray (not transparent) background
and doing
you get a tiff file with black background which makes it a little hard to read the text.
imagemagick 6.6.8-4 Q16 + ghostscript 9.01 + WindowsXP SP3
I found this viewtopic.php?f=3&t=18001#p68344 and yes, changing pngalpha to pnmraw helped.
But IMHO using convert without any options should render white (preferable) or transparent background and at least the fact that it renders gray background for png and black background for tiff is a bug.
By "usual" pdf files I mean pdf files that look like black text on white paper but in fact are black text on transparent background.
But of course these pdf files are normally (by pdf readers) rendered as black text on white background.
Anyway, doing e.g.
Code: Select all
convert Acrobat_Reader_ReleaseNote_9.3.4_8.2.4.pdf Acrobat_Reader_ReleaseNote_9.3.4_8.2.4.png
and doing
Code: Select all
convert Acrobat_Reader_ReleaseNote_9.3.4_8.2.4.pdf Acrobat_Reader_ReleaseNote_9.3.4_8.2.4.tiff
imagemagick 6.6.8-4 Q16 + ghostscript 9.01 + WindowsXP SP3
I found this viewtopic.php?f=3&t=18001#p68344 and yes, changing pngalpha to pnmraw helped.
But IMHO using convert without any options should render white (preferable) or transparent background and at least the fact that it renders gray background for png and black background for tiff is a bug.