Author Topic: Buggy "set width" or "set height"  (Read 816 times)

July 31, 2018, 05:17:27 AM
Read 816 times

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
For some objects I want to have precisely set width or height. The inkscape allows it. But ... it doesn't work right.
For example, I have dotted line 0.250px height and 155.0px width. I need to change 155 to 102.
I enter the new number into width textbox. I get 102.087. I need to enter 102 again to get 102.0.
In reverse, i enter 155 from 102 and get 154.869. And the same, have to enter 155 again to get 155.0.
It is known flaw or should i report it as a new bug? Version 0.92.

This, snapping and whole number system is giving me headache. This tool is totally unprecisely in my opinion.
For free art, ok, maybe. But if I need put some precision into it, it is better to look for other app, like CorelDraw or sth.
For example I have two lines placed vertically parallel, beetween them is 19px.
The first one has Y=550.125, the second Y=531.379. If i take existed another, third line and expand it that both vertices snapped to upper and lower lines then I get line width 19.0 (?). But if I draw new line from upper to lower lines (snapping to vertices) then the width will be 18.746 (the correct one looking for Y coordinates). Two lines expanded with snap to vertices to the same nodes, and both differ. The difference is not big, but it is the only first part. I need to make many duplications so in the end the difference will be much bigger. Is it so hard to calculate proper sizes in vector graphics?

EDIT: further try n check shows that the problem is related to objects which has been made in older versions and then the drawing has been converted to 0.92 (DPI change). Newly created objects are free from above, and there is no way to fix older objects. At least i didn't find the way. It is not a solution of course because i won't be able to replace every object.
« Last Edit: July 31, 2018, 08:16:53 AM by Krzysztof »
  • 0.92.3
  • Win7x64

August 01, 2018, 08:50:25 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, let me make sure I understand what you're saying.  Are you saying that you only see this problem in files made with versions earlier than 0.92 ?

Could you share a file which shows this problem and a file which doesn't?

Just to confirm, you are using 0.92.3, right?

One thing you might want to consider, if you haven't already.  You might want to switch from Visual Bounding Box to Geometric Bounding Box.  The geometric bounding box does not "count" the stroke width, in the size of the object. 

Inkscape Preferences > Tools
  • 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                       

August 16, 2018, 04:06:26 AM
Reply #2

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
Ok, let me make sure I understand what you're saying.  Are you saying that you only see this problem in files made with versions earlier than 0.92 ?

Sorry, forgot. Found the real reason - Visual Bounding Box and counting the stroke into object width or height.
Thanks for tip with preferences. Didn't know it can be disabled.
  • 0.92.3
  • Win7x64

August 16, 2018, 04:55:27 AM
Reply #3

shawnhcorey

  • Sr. Newbie

  • Offline
  • **

  • 5
If you are using pixels (px), then you don't need to be precise. Pixels is an abstract measurement that changes with each device. If you need precision, use a real-world measurement like inches (in) or centimetres (cm).
  • 0.91
  • Lint Mint 17.3
Don't stop where the ink does.

August 16, 2018, 01:47:23 PM
Reply #4

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
That doesn't make a lot of sense, @shawnhcorey, at least as it is formulated currently. Can you explain what you mean?

November 15, 2018, 01:02:51 AM
Reply #5

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
If you are using pixels (px), then you don't need to be precise.

I don't like undesired gaps beetween objects, doesn't matter You are using pixels or cm or other measure.
Everything depends on what are You drawing.
  • 0.92.3
  • Win7x64