On Saturday 04 November 2006 03:49, Jon Cruz wrote:
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+.
That is not so bad solution if "certain builds of GTK+" means newer than 2.x.x. If I can remember correctly there was same talking about supporting only new version of GTK+ with new Inkscape 0.45. But I cann't say the name of that mail thread.
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.
Checked. I've found two requests: [ 1574853 ] manage dpi in document preferences [ 1457167 ] Scale Bitmap to DPI
I'll open another one anyway. Done! I've tried to cover all issues of that upper two in one request. Take a look.
[ 1590486 ] Assumed/specified import DPI
What I don't know is if there will be pixel losing if bitmap exported at 300 dpi from gimp is imported into Inkscape and then re-exported at 300 dpi again?
Vlada