Bug 170052

Summary: svg conversion to png incorrect
Product: WebKit Reporter: cricri.bug
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, zimmermann
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
i1.svg
none
i2.svg
none
test.svg
none
rasterize.js
none
test.png none

Description cricri.bug 2017-03-24 06:54:27 PDT
Created attachment 305279 [details]
i1.svg

When using the last version of phantomjs, the conversion of svg to png is incorrect:
open test.svg, and compare to test.png

Version:
The default user agent is Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1

To convert:
~/code/map-server/node_modules/.bin/phantomjs rasterize.js test.svg test.png '400px*400px'
Comment 1 cricri.bug 2017-03-24 06:55:20 PDT
Created attachment 305281 [details]
i2.svg
Comment 2 cricri.bug 2017-03-24 06:55:55 PDT
Created attachment 305282 [details]
test.svg
Comment 3 cricri.bug 2017-03-24 06:56:16 PDT
Created attachment 305283 [details]
rasterize.js
Comment 4 cricri.bug 2017-03-24 06:56:34 PDT
Created attachment 305284 [details]
test.png
Comment 5 Alexey Proskuryakov 2017-03-24 13:02:25 PDT
This SVG document looks as expected in Safari 10.1 beta. Please report the issue to phantom.js developers.