Inkscape Community

Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: Astroneer Tips on July 04, 2015, 08:42:39 AM

Title: My imported images arrive larger inside Inkscape
Post by: Astroneer Tips on July 04, 2015, 08:42:39 AM
I create a PNG file that is 2048 x 2048 in Blender, then I import it into Inkscape, but it arrives at 2560 x 2560. So far I just scale it down to its real size and move on, but I wouldn't mind changing a setting or something similar ONCE and for all.
I also went to the Preferences (Shift + Ctrl + P) - Input/Output - Bitmaps, and changed basically everything that had "90 DPI" to 72 DPI.
When importing after that the image's dimensions were still 2560!

Any ideas?  :beg:

Thanks guys,

JDL
Title: Re: My imported images arrive larger inside Inkscape
Post by: brynn on July 04, 2015, 09:27:38 AM
Welcome to Inkscape Community!

I saw this post over at InkscapeForum, so that gives me the idea that this problem is really bothering you, and either you didn't understand that answer, or you want a better solution.  Unfortunately, I'm not familiar with Blender, which is why I didn't reply over there.  And the person here who knows that answer is the same person who answered you over at IF.  But maybe I can add some comments that might be helpful. 

In Preferences > Bitmaps > Import did you change Default Import Resolution to 72 dpi?  I think that should work, but you realize that all PNGs that you import will be that size, right?  Also, I think you will need to check "Override file resolution" box.  Did you do that?

I'm not very familiar with these options, and don't know for sure if this will work (and since the manual hasn't been updated to 0.91 yet, I can't look it up.....hhmm, well let me search in the wiki, maybe there's a comment there.....)

However, that's not exactly what Lazur suggested  (although it might work, I'm not sure).  Lazur suggested changing units of measurement.  So I guess you could either change the units in Blender or Inkscape.  Let's say you change them in Inkscape, since that's the only place I can help with.  First, before we can do the calculations, we need to know what kind of units you're using.  It sounds like you're using pixels, but let's be sure.  Look in Blender to find what kind of units.

Make sure Inkscape is using the same units.  You might have to change the units in a couple of places (I'm not sure).  File menu > Document Properties > Page tab > General > Default units (at the top of the dialog).  Then (if changing the import dpi doesn't work) tell me the units and I can try to do the calculation for you  :D
Title: Re: My imported images arrive larger inside Inkscape
Post by: Lazur on July 06, 2015, 01:39:14 AM
Such problem haven't appeared on my side, so just guessing.
I'm still using 0.48, where there are no dpi settings alike as far as I know.

If I import an image that is 2048 PIXELS wide, it appears in a 2048 px wide bounding box by default.
As far as I know blender doesn't embed resolution dpi in rendered images/baked textures, which I assume would work the other way around:
2048/2048 in blender, is that in pixels? Because that would be an answer, if you set a physical unit in blender that gets represented in inkscape by different pixel values -which is why I was suggesting to use, like inches for measuring in inkscape that would show the exact values. Then, when exporting from inksape, the default 90 dpi would produce the same px size, as if you scale down the image and export it at 72 dpi.


Even if those don't work, you can create a custom grid above your image for a better "navigation" (can save it to a custom template file), showing the exact pixels of it, then export at a resolution that produces the desired px size.