Code: Select all
convert Fontanes.png Fontanes.output.png
http://www.cs.put.poznan.pl/ekowalczuk/Fontanes.png
and result:
http://www.cs.put.poznan.pl/ekowalczuk/ ... output.png
Using
Code: Select all
identify
Code: Select all
Fontanes.png PNG 825x73 825x73+0+0 8-bit DirectClass 62.9KB 0.000u 0:00.000
Fontanes.output.png[1] PNG 825x73 825x73+0+0 8-bit PseudoClass 256c 37.7KB 0.000u 0:00.000
...
Colorspace: sRGB
Colorspace: Grey
Of course I don't need to convert PNG to PNG, but I believe this behaviour affects what happens in JMagick code. When I feed bytes extracted in IM the OCR output quality is worse than when feeding it with bytes read for example from ImageIO.
I want to support many different formats, so I cannot use ImageIO for this purpose.
I will appreciate any remarks on this. Thanks!