svg import wrong shape #55601
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#55601
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When importing an .svg file, the imported curve is wrong. It seems related to the 'q' parts of the path.
In the case of a nondegenerate 'q', something goes wrong at the second 'q' in the first (red) path.
In the case of a degenerate 'q', somehow the 'z' connector in the second (blue) path gets curved, even though 'z' should always be a straight line.
Also, the image should be 1m × 1m, but is imported with the wrong size due to #50048 (SVG Import scaling is wrong on some files).
Blender version is 2.79.
On an unrelated note, I think 1in = 96px in css and svg, and there's a few typos in svg_import.py. svgdpi.diff
Added subscriber: @cyp-2
Added subscribers: @Sergey, @mont29
@Sergey think you kind of maintain this addon? Thanks.
Another issue I've run into is that if a single path (even with just straight lines) contains the same vertex twice, the imported path is wrong, as the repeated vertex is skipped. I think d="M0,0 M1,0 M1,1 M2,1 M2,2 M1,2 M1,1 M0,1 z" would reproduce the problem (haven't tested). Should that be in a separate bug report?
Applied the fix for typos, leaving DPI part away for now. SVG by itself does not provide any specification about what is the value for DPI is expected to be (which is understandable). But at the same time Inkscape assumes it is 90. Some other formats assumes 72. So it is a bit of a mess, and needs some smart solution, if any.
The original issue is still to be looked into.
According to https://www.w3.org/TR/SVG/coords.html#Units, 96px = 1in. Note that 1px is not necessarily the size of 1 physical pixel, especially on newer devices with higher pixel densities.
According to http://wiki.inkscape.org/wiki/index.php/Units_In_Inkscape, Inkscape was fixed to use 96px = 1in version 0.91, even though it previously used to think 90px was 1in.
This issue was referenced by
c2aef4a98f
Changed status from 'Open' to: 'Resolved'