Not able to set DPI for PNG files - libpng
-
Hello Everyone, I am using libpng library for generating PNG files which is working fine. But it always generating with DPI 96 by default. I tried using png_set_pHYs for setting the resolution before calling png_write_png. But its not generating with the specified DPI. Before and after calling png_set_pHYs, i am checking the DPI using png_get_pHYs, it was showing the correct values whatever i set. What may be the issue? And is that possible to set DPI for PNG file? Please suggest. Regards, Gopinath.
-
Hello Everyone, I am using libpng library for generating PNG files which is working fine. But it always generating with DPI 96 by default. I tried using png_set_pHYs for setting the resolution before calling png_write_png. But its not generating with the specified DPI. Before and after calling png_set_pHYs, i am checking the DPI using png_get_pHYs, it was showing the correct values whatever i set. What may be the issue? And is that possible to set DPI for PNG file? Please suggest. Regards, Gopinath.
-
Gopi Nath wrote:
What may be the issue?
Without the source code of the library it is impossible to guess.