On Friday, November 3, 2006, at 02:24 PM, Vladimir Savic wrote:
I'm open for any kind of ugly hack. :) Maybe another option in preferences. Something like "assumed DPI for imported graphic:" and then doing some calculation for DPI compensation. I don't know. Not many people will want anything different that 72, 75, 150, 300 and 600 dpi for their job.
I'm just a designer, but I do realize that libpng wont resolve exactly the same problem with tiffs, for example. It would be nice to have all graphic file formats supported, though.
Actually... I had one solution in earlier where we feed things to libpng and the pixbuff loader at the same time. I could get the DPI, but could only set it for certain builds of GTK+.
A more robust solution requires us to track some image metadata. However, this same tracking is probably what we'd need for detecting changes to open files (or at least could be done to leverage common code), so it might be useful for a few things.
Check the RFE and bug trackers for DPI issues (I think they're assigned to me, BTW) and see if you can add comments to existing ones or need to open new ones. An RFE for "assumed import DPI" might actually be quite useful and would take far less coding than the more robust solutions.