Finder renders SVG files incorrectly when previewing - document bounds (H,W) ignored

Originator:jm3
Number:rdar://33116555 Date Originated:07/03/2017
Status:open Resolved:
Product:Finder Product Version:10.12.5 (16F73), but not specific to this release.
Classification:UI/Usability Reproducible:Yes
 
SVG graphics files contain a canvas size defined by width and height attributes embedded in the SVG (XML) document.

The Finder ignores these boundaries when previewing using QuickLook or Get Info, and instead displays the image on a larger canvas with white margins on the right and bottom of the graphic.

Steps to Reproduce:
1. Open an SVG file in any SVG graphics viewer, e.g. Safari, Sketch, etc.
2. Note that document boundaries match the file's width + height.
3. Navigate to the same SVG file in the Finder, preview with QuickLook (e.g. press SPACE).

Expected Results:
Finder preview should match the same document boundaries as the SVG file, as confirmed by opening within a graphics viewer.

Observed Results:
Finder preview does not match the same document boundaries from the SVG file, and instead displays large margins on the right and bottom of graphic.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!