Inkscape.org
Beyond the Basics Unable to export PNG with width/height pixel independent of DPI
  1. #1
    Horinius Horinius @Horinius

    Hello,

    OK, I'm pretty sure this is a bug but let me ask here first.  Maybe someone has a workaround for the time being.

    Here's what happened:

    - I opened an SVG file.
    - I then opened the "Export..." panel.
    - I set the width/height pixel to some values.
    - I noticed that DPI value is changed too.
    - I tried to set DPI to some other value.
    - I noticed that width/height pixel are changed to some values (proportional to DPI)

    Is it possible to set DPI independently of width/height pixel?  Or I just have to wait a bug correction for the time being?

    Thanks in advance.

     

     

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Settings in the Export dialog:

  3. #3
    karliss karliss @karliss

    DPI = Size_in_pixels / Size_in_inches. Or looking at differently Size_in_pixels = Size_in_inches * DPI. They are related to each other by definition. Although technically PPI might be more accurate description of it than DPI.

    You can override the DPI stored in  exported image metadata using the menu Tyler showed. Just be aware that this may cause a physical size mismatch between inkscape and whatever software you import the exported image into.

    The default value of 0, should cause it use same value as the value used to calculate export resolution.


    If by image width/height changes you wanted to change the area exported instead of export resolution you can do that choosing "Custom"  mode in export dialog. It allows you independently choose the region of image you are exporting and at what resolution/dpi you want it exported.
     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Unable to export PNG with width/height pixel independent of DPI