Bug 170052 - svg conversion to png incorrect
Summary: svg conversion to png incorrect
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-24 06:54 PDT by cricri.bug
Modified: 2017-03-24 13:02 PDT (History)
2 users (show)

See Also:


Attachments
i1.svg (268 bytes, image/svg+xml)
2017-03-24 06:54 PDT, cricri.bug
no flags Details
i2.svg (426 bytes, image/svg+xml)
2017-03-24 06:55 PDT, cricri.bug
no flags Details
test.svg (624 bytes, image/svg+xml)
2017-03-24 06:55 PDT, cricri.bug
no flags Details
rasterize.js (2.19 KB, application/javascript)
2017-03-24 06:56 PDT, cricri.bug
no flags Details
test.png (3.05 KB, image/png)
2017-03-24 06:56 PDT, cricri.bug
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.