SVG importer scale issues #45460

Closed
opened 2015-07-16 16:22:55 +02:00 by Howard Trickey · 13 comments
Member

A user report on the forum says that the Scalable Vector Graphics (svg) importer "doesn't work" on SVG exported from Adobe Illustrator CC. He supplied a test file, which I simplified a bit here:
cwb.svg

I find that the importer works, but that the scale is about 10,000 too small.

I note that removing the "viewbox" attribute from the svg node in the example file results in an imported size that looks about right. But I hesitate to remove or disable the viewbox processing code in addons/io_curve_svg/import_svg.py as I am not familiar with how the code is doing its scaling.

Reference: the forum post:
http://blenderartists.org/forum/showthread.php?209604-Import-ai-pdf&p=2903684#post2903684

A user report on the forum says that the Scalable Vector Graphics (svg) importer "doesn't work" on SVG exported from Adobe Illustrator CC. He supplied a test file, which I simplified a bit here: ![cwb.svg](https://archive.blender.org/developer/F207437/cwb.svg) I find that the importer works, but that the scale is about 10,000 too small. I note that removing the "viewbox" attribute from the svg node in the example file results in an imported size that looks about right. But I hesitate to remove or disable the viewbox processing code in addons/io_curve_svg/import_svg.py as I am not familiar with how the code is doing its scaling. Reference: the forum post: http://blenderartists.org/forum/showthread.php?209604-Import-ai-pdf&p=2903684#post2903684
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Sergey Sharybin was assigned by Howard Trickey 2015-07-16 16:22:55 +02:00
Author
Member

Added subscriber: @howardt

Added subscriber: @howardt

#44996 was marked as duplicate of this issue

#44996 was marked as duplicate of this issue
Sergey Sharybin was unassigned by Bastien Montagne 2015-07-16 17:50:03 +02:00
Campbell Barton was assigned by Bastien Montagne 2015-07-16 17:50:03 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

Afaik it’s Campbell who maintains that script?

Afaik it’s Campbell who maintains that script?
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Hi, testing several svg files, the scale issue still exists.
Could we add the fix by Howard Trickey (howardt).?
Would it be better to add a checkbox/settings in the file browser operator panel?

Hi, testing several svg files, the scale issue still exists. Could we add the fix by Howard Trickey (howardt).? Would it be better to add a checkbox/settings in the file browser operator panel?
Member

Added subscribers: @ideasman42, @blenderLight

Added subscribers: @ideasman42, @blenderLight
Brendon Murphy changed title from SVG exported from Adobe Illustrator CC scaled much too small by importer to SVG importer scale issues 2015-09-08 04:05:26 +02:00

Added subscriber: @AndrewButtery

Added subscriber: @AndrewButtery
Campbell Barton was unassigned by Brendon Murphy 2015-09-27 01:02:34 +02:00
Sergey Sharybin was assigned by Brendon Murphy 2015-09-27 01:02:34 +02:00

Added subscriber: @RemigiuszFiedler

Added subscriber: @RemigiuszFiedler

This issue was referenced by 2fb7194dba

This issue was referenced by 2fb7194dba7a60c82642032c780a0652fdc56b88

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Attaching file here, so it's never lost and we can always access it: blender_vector.7z

Attaching file here, so it's never lost and we can always access it: [blender_vector.7z](https://archive.blender.org/developer/F822704/blender_vector.7z)
Sign in to join this conversation.
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#45460
No description provided.