Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Post questions on how to use or achieve an effect in Inkscape.
Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Thu Oct 12, 2017 9:14 am

Hi,

New member here. I've followed the guidelines re: seeking answers (looking at FAQ's, the manual, etc.) but have NOT found answer to my problem. It's this: my bezier lines seem to have a mind of their own. For example I create a simple straight line with the Bezier Tool and set its width to 1pixel. However, Inkscape (Version 0.92.1 r15371 on Windows 10 home) keeps reverting it to 0.999. Or if I set it 35 pixels, Inkscape will revert to 34.999.

This doesn't seem that important but I am noticing that the widths of the Bezier curves I'm attempting to create are inconsistent. I'm at my wit's end. I tried uninstalling and reinstalling this version but the same problem occurs. Thanks for any suggestions.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby brynn » Thu Oct 12, 2017 1:50 pm

Have you noticed what happened to cause the width to change? Or did you notice when it happened?

My best guess is that you inadvertently have an LPE applied to the paths. But it would be better if you can identify what happens which causes the width to change, and share an SVG file which displays the problem with us, in case we need to look deeper into it.

If this is happening when you scale the object (make it smaller), then you need to look at a button on the Selection tool control bar "When scaling objects, scale the stroke width by the same proportion" button (4th from the right).

If something else seems to be the trigger, as I said, let us know. We might want to look at an SVG file that shows the problem, especially if we haven't seen the problem before.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Fri Oct 13, 2017 7:32 am

Additional thing to try: Update to 0.92.2, the current version. It's maybe not going to solve this issue, but it contains many bug fixes for the previous version (uninstall first, then install the new version to avoid other issues).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Sun Oct 15, 2017 7:00 am

Thank you so much for the reply.

It's not occurring when I scale objects up or down. (I'm aware of that button.) Let me clarify further. (sorry!)

I create a simple straight Bezier Line. I attempt to change it to a path ('Stroke to Path'). After doing this, the line width becomes variable!

I'm attaching the .svg file for your review. Again thank you so much.
beth61_sample_bezier_line.svg
(2.27 KiB) Downloaded 209 times

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Sun Oct 15, 2017 7:49 am

Ok I just downloaded 92.2 and the exact same thing just happened! I created another sample file which shows the strange results. Thanks for your help.

beth61_bezier_version_92-2.svg
(4.57 KiB) Downloaded 232 times

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby tylerdurden » Sun Oct 15, 2017 7:52 am

Like this??
Single bezier path, stroke to path:
Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Sun Oct 15, 2017 7:56 am

Could you please add the original path into the file, too?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Sun Oct 15, 2017 9:03 am

beth61_bezier_version_92-2.svg
(8.83 KiB) Downloaded 179 times
Tylerdurden - to clarify, you're suggesting that I duplicate the bezier line first (before I change it to a Path)? I just tried that, and I'm still getting strange result.

Moini - Not sure what you're asking me to provide. But I'll add the steps I took before the end result. File's attached now.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Sun Oct 15, 2017 9:45 am

Yes, exactly, this was what I was asking for.

Can you now upload a copy of your preferences file? I cannot reproduce with my Inkscape, so I think some setting in Inkscape must be off to give you that result.
You can find the file if you follow the link given at Edit > Preferences > System > User preferences.

I suspect there's a problem with your precision settings.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby tylerdurden » Sun Oct 15, 2017 9:52 am

Something is wacky with the converted path's xml...

Code: Select all

    <path
       style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.796;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
       d="m 143,199 c -3,1 -5,2 -8,5 v 0 c 4,-3 7,-4 10,-4 3,1 6,2 10,4 7,4 16,8 30,0 v 0 c -14,7 -23,3 -30,0 -3,-2 -6,-4 -10,-5 -1,0 -1,0 -2,0 z"
       id="path4666"


I daresay we have a bug. I get similar on my system.

Maybe related to to the OPs issue, maybe not.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Sun Oct 15, 2017 11:09 am

The 'd' thing with all the values with a single decimal max is probably related to the issue, the text-related info for a bare path is weird. I cannot reproduce that in a new and empty file - but I can in the original file.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby tylerdurden » Mon Oct 16, 2017 1:09 am

Yeah, numeric precision at low values seems to mess things up a bit. Fun testing... :twisted:

Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Mon Oct 16, 2017 2:21 am

By 'Preference File' do you mean the specific Pen setting? I took a screen shot of it. Will try to attach it.

Sorry I'm not a real techie so sort of stumbling through this.

....

Ok I rec'd a message when trying to attach the file that it was too big (I saved the screen shot as a .png in Paint)!!

Are you looking for 'Ctr + click dot size' setting (i'm not sure what that is)? It's set to 2.90 times current stroke width....

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Mon Oct 16, 2017 3:06 am

P.S. Ok I'm making headway ... I just learned that the Preference file is kept here:

~/.config/Inkscape/preferences.xml (0.47 and later)

So now I'm just searching around in my C: Programs/Inkscape for it. Not having much luck. If you have a tip for me, it would be appreciated. ha ha

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Mon Oct 16, 2017 3:59 am

Set the file browser to display hidden files. See https://www.howtogeek.com/howto/windows ... ows-vista/
(the article is for Win 7, 8, and 10).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Mon Oct 16, 2017 3:59 am

~ means your home folder. So C:\Users\yourname
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Mon Oct 16, 2017 4:00 am

Sorry - what I should have written, instead of the above two posts:

You can find the file if you follow the link given at Edit > Preferences > System > User preferences. (as I said above)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby tylerdurden » Mon Oct 16, 2017 4:15 am

I'd set the numeric precision to 8, in preferences... Last button on the top right. Look for SVG output.

Then try the drawing.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby flamingolady » Mon Oct 16, 2017 5:06 am

Beth,
I have the same issue with stroke to path. Since I don't use that option very much, I do a simple workaround - add more nodes. You can do this before or after applying stroke to path. Very easy, select your object or path, in node mode select all the nodes (or just the ones involved), click the + to add nodes, might need to click it a couple of times. I usually forget to do this until after I've used stroke to path, but once nodes are added, it appears normal again, sometimes I chg the nodes to be smooth type. quick and easy.
dee

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Mon Oct 16, 2017 5:49 am

Hey! I set the precision to 8 in preferences, and I'm not experiencing any weirdness after I set the stroke to a Path. Cool! THANKS!!!

Question re: where my Inkscape Preference file is and how to locate it. So, it's 'C:\Users\Beth/config/Inkscape/preferences.xml, correct? When I enter that in the Windows Search bar, I get no results. I did switch on my 'Hidden Files' too.

Not sure how generous of your time you're still feeling, but I ran into an error message in the particular project I'm working on, for the 3rd time. I'm attempting to apply 'Perspective' to a 67-node path object I created. Here's the error message:

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\python\Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension.Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml

Technical details:
No module named lxml

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Mon Oct 16, 2017 6:09 am

Just wanted to quickly say THANKS again. I love Inkscape for its simplicity and straightforwardness. 3 months ago I found Nick Saporito's Youtube Inkscape tutorials, and I am loving it. Down side is I have to learn Adobe Illustrator 'cuz that's what the employers want.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby tylerdurden » Mon Oct 16, 2017 6:22 am

Another user had this issue a while back and this was the solution at the time:
I had this problem on 64-bit Windows 7 and discovered it was caused by a previous installation of Python, which had installed an environment variable called PYTHONHOME in the system variables. Deleting this variable solved the problem. This isn't at all a satisfactory solution, because whatever it was that was previously using that environment variable now can't, but at least it makes Inkscape work.

He is how to get rid of it:
- From the Start menu, type "System" and select System from the list (under 'Control Panel').
- Click on 'Advanced System Settings' from the panel on the left.
- Click the 'Environment Variables' button at the bottom.
- Under 'System Variables', scroll down until you find a variable called 'PYTHONPATH', write down what its value is, so that you can recreate it if you need it, and then delete it.
-Close and open Inkscape, and try to see if it's worked. (There was no need to restart the computer in my case).



Here's where I'd look for preferences.xml:
navigateWindows_to_prefs.png
navigateWindows_to_prefs.png (66.42 KiB) Viewed 3534 times


(FWIW, there are other Ai users here too...)
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Mon Oct 16, 2017 12:01 pm

Just for clarity: we don't need the preferences file anymore, as you've changed the precision value (out of curiosity: do you remember the value it had originally?), but if you ever need it, you can look up where it is located from inside Inkscape, following the instructions: "You can find the file if you follow the link given at Edit > Preferences > System > User preferences" - or, if everything on your Windows system is on default settings, as it most probably is, use the screenshot above by TD for guidance.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Beth61
Posts: 21
Joined: Fri Jun 16, 2017 9:00 pm

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Beth61 » Mon Oct 16, 2017 8:12 pm

Precision was set to '2'.

Thanks again for all your help.

After work today I'll see how it is acting.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Bezier lines inconsistent width (Inkscape 0.92.1 r15371)

Postby Moini » Mon Oct 16, 2017 10:09 pm

Thank, Beth - that value fits the SVG data we saw. Let us know how it goes with the Python!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”