Allow user to specify screen resolution other than 90 dpi

Bug #166970 reported by Wolfiq
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Opinion
Wishlist
Unassigned
inkscape (Debian)
Fix Released
Unknown
inkscape (Ubuntu)
Opinion
Wishlist
Unassigned

Bug Description

Hi,

on debian's BTS I got the following report at
http://bugs.debian.org/326051 by Cyril Humbert (cyril
dot humbert at univ-mlv dot fr) some time ago:

"The zoom scale doesn't take into account the actual screen
resolution.

For example, with a 17" CRT monitor, if the screen size is
1024x768 (=> about 80 dpi):

- Open a new A4 document;
- Set the zoom factor to 100%;
- The page appears bigger than the A4 format (in fact, it
seems that a 90 dpi resolution is assumed).

Perhaps, it would be nice to have an option to manually
adjust which value is the screen resolution (like in e.g.
gimp or scribus)."

Thanks,

Wolfi

Tags: ui
Revision history for this message
Wolfiq (wolfiq) wrote : zoom factor doesn't take into account screen resolution

Hi,

on debian's BTS I got the following report at
http://bugs.debian.org/326051 by Cyril Humbert (cyril
dot humbert at univ-mlv dot fr) some time ago:

"The zoom scale doesn't take into account the actual screen
resolution.

For example, with a 17" CRT monitor, if the screen size is
1024x768 (=> about 80 dpi):

- Open a new A4 document;
- Set the zoom factor to 100%;
- The page appears bigger than the A4 format (in fact, it
seems that a 90 dpi resolution is assumed).

Perhaps, it would be nice to have an option to manually
adjust which value is the screen resolution (like in e.g.
gimp or scribus)."

Thanks,

Wolfi

Revision history for this message
In , Wolfram Quester (wolfi) wrote : Re: Bug#326051: inkscape: zoom factor doesn't take into account the actual screen resolution

forwarded 326051 http://sourceforge.net/tracker/index.php?func=detail&aid=1303192&group_id=93438&atid=604306
Thanks

On Thu, Sep 01, 2005 at 03:18:19PM +0200, Cyril Humbert wrote:
> Package: inkscape
> Version: 0.42.2-1
> Severity: minor
>
> Hello,
> The zoom scale doesn't take into account the actual screen
> resolution.
>
> For example, with a 17" CRT monitor, if the screen size is
> 1024x768 (=> about 80 dpi):
>
> - Open a new A4 document;
> - Set the zoom factor to 100%;
> - The page appears bigger than the A4 format (in fact, it
> seems that a 90 dpi resolution is assumed).
>
> Perhaps, it would be nice to have an option to manually
> adjust which value is the screen resolution (like in e.g.
> gimp or scribus).
>
> Regards,
>

Thanks for your report, I forwarded it to the upstream developers. You
can follow the discussion there by visiting
http://sourceforge.net/tracker/index.php?func=detail&aid=1303192&group_id=93438&atid=604306.

With best regards,

Wolfi

Revision history for this message
Buliabyak-users (buliabyak-users) wrote : Re: zoom factor doesn't take into account screen resolution

As far as I know most other SVG renderers also use fixed
resolution for px/absolute conversions. So long as they do,
I don't really think we need to fix this bug either. After
all SVG is not well suited for absolute units at all, the
spec recommends to always use px to avoid incompatibilities.

Revision history for this message
In , Wolfram Quester (wolfi) wrote : Re: Bug#326051: inkscape: zoom factor doesn't take into account the actual screen resolution

Hi Cyril,

buliabyak, one of the upsream authors of inkscape replied to your
request on sourceforge:

"As far as I know most other SVG renderers also use fixed
resolution for px/absolute conversions. So long as they do,
I don't really think we need to fix this bug either. After
all SVG is not well suited for absolute units at all, the
spec recommends to always use px to avoid incompatibilities."

With best regards,

Wolfi

Revision history for this message
In , Cyril Humbert (cyril-humbert) wrote :

Wolfram Quester wrote:
> Hi Cyril,
>
> buliabyak, one of the upsream authors of inkscape replied to your
> request on sourceforge:
>
> "As far as I know most other SVG renderers also use fixed
> resolution for px/absolute conversions. So long as they do,
> I don't really think we need to fix this bug either. After
> all SVG is not well suited for absolute units at all, the
> spec recommends to always use px to avoid incompatibilities."
>
> With best regards,
>
> Wolfi

Hello Wolfram,

Thanks for having forwarded the reply. I don't agree
with Buliayak's arguments because, sometimes, it makes
more sense to use absolute units like 'cm' and to expect
they would be displayed at the right scale on the screen
(programs like gs, Adobe Reader, Scribus... do that).

Anyway, it's a minor bug and inkscape is a very promising
program.

BTW, looking at the beginning of the file "src/unit-constants.h"
let me think this bug could be fixed some day.

with best regards,
--
Cyril

Revision history for this message
In , Wolfram Quester (wolfi) wrote :

Hi Cyril,

On Thu, Oct 06, 2005 at 06:25:44PM +0200, Cyril Humbert wrote:
> Wolfram Quester wrote:
> > Hi Cyril,
> >
> > buliabyak, one of the upsream authors of inkscape replied to your
> > request on sourceforge:
> >
> > "As far as I know most other SVG renderers also use fixed
> > resolution for px/absolute conversions. So long as they do,
> > I don't really think we need to fix this bug either. After
> > all SVG is not well suited for absolute units at all, the
> > spec recommends to always use px to avoid incompatibilities."
> >
> > With best regards,
> >
> > Wolfi
>
> Hello Wolfram,
>
> Thanks for having forwarded the reply. I don't agree
> with Buliayak's arguments because, sometimes, it makes
> more sense to use absolute units like 'cm' and to expect
> they would be displayed at the right scale on the screen
> (programs like gs, Adobe Reader, Scribus... do that).
>
> Anyway, it's a minor bug and inkscape is a very promising
> program.
>
> BTW, looking at the beginning of the file "src/unit-constants.h"
> let me think this bug could be fixed some day.
>
> with best regards,
> --
> Cyril

It would be best if you would argue with bulia directly using the
webadress were I forwarded your report to.

Thanks,

Wolfi

Revision history for this message
Yangman (yangman) wrote : Re: zoom factor doesn't take into account screen resolution

I guess I'm throwing in my vote to have this fixed as well.

It would be nice if 100% actually meant "this is what it
will look like printed", as opposed to, you know, "haha,
sucka!".

On my computer, everything is much too small at 100%. 15"
LCD at 1400x1050, at, iirc, 167dpi.

Changed in inkscape:
importance: Low → Wishlist
status: New → Confirmed
Revision history for this message
Tom Davidson (tjd-mit) wrote : Re: Let zoom factor take screen resolution into account

bug 168834 is a dupe of this one, with an emphasis on the rulers being incorrect.

Revision history for this message
Mercury (mercury13) wrote :

There's a fundamental question. What to do if in the same document there are physical units (mm) and screen units (px)? Change document look if DPI has changed or stay as it is?

Two size types (actual screen size, screen*200%, screen*300% and actual physical size, physical*200%, physical*300%) is a poor solution. Maybe, the best solution remaining is to make such a thing.

In IS settings: Screen DPI (just for "physical scale") [ 96 ], and checkbox "Take DPI from system".
In zoom menu make two mutually-exclusive options: "Physical scale (depends on screen DPI)" and "Screen scale (1px=1/90in)"

DON'T SIMPLY TAKE SCREEN DPI FROM SYSTEM, let the user override it - the users tend to set the DPI depending on UI font rendering (at least in Windows), and "system inch" isn't necessarily an inch.

Revision history for this message
Tom Davidson (tjd-mit) wrote :

Actually, Mercury, SVG 'px' are treated everywhere in inkscape as physical units (at 1/90", just like a pt is 1/72"), so the mixture of SVG px and mm is not a problem.

Your proposed solution I think makes lots of sense. If the user is designing icons or web pages, and wants 1 SVG px == 1 screen pixel, then they use the default setting of 90dpi. If instead they are doing print work and want 1 SVG px == 1/90" (and therefore 1 document mm to equal 1 mm on screen) then they can set the value to their actual screen dpi.

I think the only think inkscape would have to change is the way the zoom factor is calculated...

Tom Davidson (tjd-mit)
Changed in inkscape:
assignee: nobody → tjd-mit
Revision history for this message
Sylvain BERTRAND (sylvain-bertrand) wrote :

What's up with this feature? I'm using inkscape 0.46 and the zoom is still wrong. I cannot see any of the new DPI settings anywhere in the menus.

Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

It's quite simple. The CSS spec mentions a reference pixel of 90 DPI. There were a lot of internals hardcoded with such ratios. In order to allow for display-dependent zoom to occur, two main things need to happen.

First we need reliable cross-platform code to get accurate DPI info from displays. (This is not always a trivial matter)

Second, we need to change any code left with hardcodings. This is not quite trivial, but does need someone to step up and volunteer to do the work.

Revision history for this message
Sylvain BERTRAND (sylvain-bertrand) wrote :

Well... if the code would have been C/no garbage collector... I would have done it. But, that's my choice. Hope you'll find somebody or time to do it.

Revision history for this message
electromage (electromage) wrote :

I don't know if this is affected by this specific bug, but I'd like to be able to import raster images at 300DPI, if I import them now, they are >3x the size they should be in inches, and if I scale them to 90DPI, then export the vector file at 300DPI, the images will be much lower resolution than anything else.

Revision history for this message
In , Alex Valavanis (valavanisalex) wrote : Bug #326051 forwarded to launchpad
affects: debian → inkscape (Debian)
Revision history for this message
In , Alex Valavanis (valavanisalex) wrote :

tags 326051 + confirmed
thanks

Changed in inkscape (Ubuntu):
status: New → Confirmed
Tom Davidson (tjd-mit)
Changed in inkscape:
assignee: Tom Davidson (tjd-mit) → nobody
Revision history for this message
Dennis (maxka) wrote :

Let me vote for that bug, as I think inkscape should not implicitly make a relative unit an absolute one. A default is very okay, let's say 90dpi or anything else. But the SVG-standard also emphasizes the "px" unit as "user unit", therefore relative and negotiable.

So by allowing absolute units (cm, in, em, pt...), SVG is indeed capable of designing "fixed"-sized elements, where sizes and zooms have to be interpretede by different software. mixing absolute/relative units may cause bad things to your SVGs when displaying them with different soft- and hardware.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Inkscape 0.47 introduced the "Zoom correction factor" setting in Inkscape Preferences->Interface. Is this a good enough solution?

Changed in inkscape:
status: Confirmed → Incomplete
Changed in inkscape (Ubuntu):
status: Confirmed → Incomplete
Changed in inkscape (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

As I said in my last comment, there is now a "zoom correction factor" setting available, which I believe satisfies the feature request. I'll leave this report open to gather opinions on this

Changed in inkscape:
status: Incomplete → Opinion
Changed in inkscape (Ubuntu):
status: Incomplete → Opinion
Revision history for this message
Zirneklitis (karlo-k) wrote :

I am using Inkscape 0.48+devel r (May 17 2013). The "zoom correction factor" allows to change the zoom factor. The zomm tool 1:1 makes the dimensions of the page to be shown correct. At the same time the information at the bottom right corner states that the zoom level is not 100%. I should be able to set zoom 1:1 just typing 100% in the box at the bottom right corner as well.

Changed in inkscape (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.