Discussion:
help with converting pbm to png
Terry Todd
2010-10-26 21:54:31 UTC
Permalink
I have a .pbm file that was extracted from a .pdf file from a
microfilm reader / scanner. When I run "convert file.pbm file.jpg"
it works fine. I get back a good image that looks just like it
does in the .pdf file. However when I run "convert file.pbm
file.png" it is all grainy and almost impossible to read. I have
tried all kinds of density and other options to no avail. Any
suggestions on how to get a quality png image would be appreciated.
Fred Weinhaus
2010-10-27 03:24:07 UTC
Permalink
post a link to your pbm file or the results of

identify -verbose file.pbm
Post by Terry Todd
I have a .pbm file that was extracted from a .pdf file from a
microfilm reader / scanner. When I run "convert file.pbm file.jpg"
it works fine. I get back a good image that looks just like it
does in the .pdf file. However when I run "convert file.pbm
file.png" it is all grainy and almost impossible to read. I have
tried all kinds of density and other options to no avail. Any
suggestions on how to get a quality png image would be appreciated.
Fred Weinhaus
2010-10-27 03:25:14 UTC
Permalink
post a link to your pbm file or the results of

identify -verbose file.pbm


P.S. What version of IM are you using? If old, then perhaps upgrade.
Post by Terry Todd
I have a .pbm file that was extracted from a .pdf file from a
microfilm reader / scanner. When I run "convert file.pbm file.jpg"
it works fine. I get back a good image that looks just like it
does in the .pdf file. However when I run "convert file.pbm
file.png" it is all grainy and almost impossible to read. I have
tried all kinds of density and other options to no avail. Any
suggestions on how to get a quality png image would be appreciated.
Terry Todd
2010-10-27 15:14:39 UTC
Permalink
Fred,

I am using:
convert -version
Version: ImageMagick 6.5.4-10 2010-02-07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

http://74.93.73.41/pbm-problem/

I used pdfimages to extract the .pbm files from the .pdf.

Thanks,
Terry Todd
Post by Fred Weinhaus
post a link to your pbm file or the results of
identify -verbose file.pbm
P.S. What version of IM are you using? If old, then perhaps upgrade.
Post by Terry Todd
I have a .pbm file that was extracted from a .pdf file from a
microfilm reader / scanner. When I run "convert file.pbm file.jpg"
it works fine. I get back a good image that looks just like it
does in the .pdf file. However when I run "convert file.pbm
file.png" it is all grainy and almost impossible to read. I have
tried all kinds of density and other options to no avail. Any
suggestions on how to get a quality png image would be appreciated.
_______________________________________________
Magick-users mailing list
http://studio.imagemagick.org/mailman/listinfo/magick-users
Fred Weinhaus
2010-10-27 16:55:27 UTC
Permalink
Terry,

All of your images look the same to me.

grc-papers.pdf
payroll-000.pbm
payroll-000.jpg
payroll-000.png

I used the im display function and also Mac Preview. I am on IM 6.6.4.5 Q16


the pbm file is directclass, bilevel
the png file is pseudoclass bllevel
the jpg file is pseudoclass graylevel

but they all look about the same. Perhaps your image viewer is not
able to display the png properly?

Fred
Post by Terry Todd
convert -version
Version: ImageMagick 6.5.4-10 2010-02-07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
http://74.93.73.41/pbm-problem/
I used pdfimages to extract the .pbm files from the .pdf.
Thanks,
Terry Todd
Fred Weinhaus
2010-10-27 17:01:38 UTC
Permalink
Terry,

All of your images look the same to me.

grc-papers.pdf
payroll-000.pbm
payroll-000.jpg
payroll-000.png

I used the im display function and also Mac Preview. I am on IM 6.6.4.5 Q16


the pbm file is directclass, bilevel
the png file is pseudoclass bllevel
the jpg file is pseudoclass graylevel

but they all look about the same. Perhaps your image viewer is not
able to display the png properly?

Fred



P.S. There may have been some PNG fixes between 6.5.4 and 6.6.5. So
you might try upgrading.
Post by Terry Todd
convert -version
Version: ImageMagick 6.5.4-10 2010-02-07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
http://74.93.73.41/pbm-problem/
I used pdfimages to extract the .pbm files from the .pdf.
Thanks,
Terry Todd
Loading...