gotcha

Author Topic: My imported images arrive larger inside Inkscape  (Read 3367 times)

July 04, 2015, 08:42:39 AM
Read 3367 times

Astroneer Tips

  • Sr. Newbie

  • Offline
  • **

  • 9
  • Gender
    Male

    Male
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
  • 0.92.4
  • Linux Mint 19 Cinnamon, and Windows 10

July 04, 2015, 09:27:38 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 06, 2015, 01:39:14 AM
Reply #2

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
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.