Simple Scan uses gdk-pixbuf library, which currently doesn't provide API for storing density info.
But libpng, libjpeg and libtiff, on top of which gdk-pixbuf is built, provide such API.
For example, there's png_set_pHYs(resolution_x, resolution_y) in libpng,
X_density and Y_density in jpeg_compress_struct,
XResolution and YResolution tags in libtiff are supported.
The question is: should it be considered gdk-pixbuf bug?
Or maybe it's better to use (or write from scratch) Vala API bindings for libpng, libjpeg and libtiff?
Simple Scan uses gdk-pixbuf library, which currently doesn't provide API for storing density info. pHYs(resolution _x, resolution_y) in libpng, struct,
But libpng, libjpeg and libtiff, on top of which gdk-pixbuf is built, provide such API.
For example, there's png_set_
X_density and Y_density in jpeg_compress_
XResolution and YResolution tags in libtiff are supported.
The question is: should it be considered gdk-pixbuf bug?
Or maybe it's better to use (or write from scratch) Vala API bindings for libpng, libjpeg and libtiff?