mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fix decoding of JPX images having an alpha channel
When an image has a non-zero SMaskInData it means that the image has an alpha channel. With JPX images, the colorspace isn't required (by spec) so when we don't have it, the JPX decoder will handle the conversion in RGBA format.
This commit is contained in:
parent
5c51d56223
commit
196affd8e0
12 changed files with 126 additions and 39 deletions
1
test/pdfs/isssue18194.pdf.link
Normal file
1
test/pdfs/isssue18194.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/user-attachments/files/15511847/out2.pdf
|
1
test/pdfs/issue11306.pdf.link
Normal file
1
test/pdfs/issue11306.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/3806127/2018.Wrapped.pdf
|
1
test/pdfs/issue16782.pdf.link
Normal file
1
test/pdfs/issue16782.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/12244643/tt1.pdf
|
|
@ -10031,5 +10031,30 @@
|
|||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue16782",
|
||||
"file": "pdfs/issue16782.pdf",
|
||||
"md5": "b203313ae62c0dac2585fae1c5fa6f8b",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue11306",
|
||||
"file": "pdfs/issue11306.pdf",
|
||||
"md5": "dfc626ee307f9488d74341d21641db9e",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "isssue18194",
|
||||
"file": "pdfs/isssue18194.pdf",
|
||||
"md5": "dbc12624353401deac99d94a2962df4d",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue