Viewbox values are buggy when resize file with % size

Bug #1688340 reported by Trev Peterson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Undecided
Unassigned

Bug Description

OS: Ubuntu 16.04
Inkscape: 0.91

When I resize an SVG with height="100%" width="100%" the viewbox changes to very strange values.

Snippet from source file:

   width="100%"
   height="100%"
   viewBox="0 0 637.79537 520.86595"

After opening in inkscape 0.91, changing Document Properties - Page to custom Width: 500 px, Height :500 px and saving the following lines are seen in the resulting SVG:

   width="500"
   height="500"
   viewBox="-318897.68 0 0 520.86595"

Attached is the SVG source file I used to identify this issue. Another inkscape user has confirmed the same behavior.

Tags: viewbox
Revision history for this message
Trev Peterson (trev-advanced-reality) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows 10, Inkscape 0.92.1 r15371
attached is the svg file I get after resizing the page.

the numerical values for the new viewbox are different than comment 1, but the net effect is the same.
   width="500"
   height="500"
   viewBox="0 0 318897.68 260432.98"

Changed in inkscape:
status: New → Confirmed
jazzynico (jazzynico)
tags: added: viewbox
Changed in inkscape:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.