mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Remove the use of (get/put)ImageData when drawing SMasks (bug 1874013)
and implement then in using some SVG filters and composition. Composing in using destination-in in order to multiply RGB components by the alpha from the mask isn't perfect: it'd be a way better to natively have alpha masks support, it induces some small rounding errors and consequently computed RGB are approximatively correct. In term of performance, it's a real improvement, for example, the pdf in issue #17779 is now rendered in few seconds. There are still some room for improvement, but overall it should be a way better.
This commit is contained in:
parent
77e2182b8e
commit
82989e6790
5 changed files with 242 additions and 140 deletions
2
test/pdfs/issue17779.pdf.link
Normal file
2
test/pdfs/issue17779.pdf.link
Normal file
|
@ -0,0 +1,2 @@
|
|||
https://github.com/mozilla/pdf.js/files/14522359/p95.pdf
|
||||
|
|
@ -9957,5 +9957,13 @@
|
|||
"id": "51R"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "issue17779",
|
||||
"file": "pdfs/issue17779.pdf",
|
||||
"md5": "764b72e8e56e22662b321b308254fd2b",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue