Why is convert reducing quality when PNG -> PNG
Posted: 2014-11-14T01:05:12-07:00
When I convert PNG to PNG, the quality is reduced (I can see it visually and also OCR output quality is greatly reduced):
Here is the input:
http://www.cs.put.poznan.pl/ekowalczuk/Fontanes.png
and result:
http://www.cs.put.poznan.pl/ekowalczuk/ ... output.png
Using I see that the types of pictures differ:
I don't understand why the picture is altered at all.
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!
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!