Page MenuHome

SVG importer scale issues
Closed, ResolvedPublic

Description

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:

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

Event Timeline

Howard Trickey (howardt) updated the task description. (Show Details)
Howard Trickey (howardt) raised the priority of this task from to Needs Triage by Developer.
Howard Trickey (howardt) set Type to Bug.
Bastien Montagne (mont29) triaged this task as Normal priority.Jul 16 2015, 5:50 PM

Afaik it’s Campbell who maintains that script?

Brendon Murphy (meta-androcto) raised the priority of this task from Normal to Confirmed, Medium.Sep 8 2015, 3:42 AM

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?

Brendon Murphy (meta-androcto) renamed this task from SVG exported from Adobe Illustrator CC scaled much too small by importer to SVG importer scale issues.
Brendon Murphy (meta-androcto) raised the priority of this task from Confirmed, Medium to Confirmed, High.
Brendon Murphy (meta-androcto) lowered the priority of this task from Confirmed, High to Normal.Oct 22 2015, 10:43 PM

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