-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read color info from JPX stream + fix color problem #4540 #4565
Conversation
Fix colors problem mozilla#4540 + minor cleanup fix lint warnings
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/adf3588fdb43dfb/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/0a0169e6aff2311/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/adf3588fdb43dfb/output.txt Total script time: 14.43 mins
Image differences available at: http://107.22.172.223:8877/adf3588fdb43dfb/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/0a0169e6aff2311/output.txt Total script time: 15.23 mins
Image differences available at: http://107.21.233.14:8877/0a0169e6aff2311/reftest-analyzer.html#web=eq.log |
Let's try this again. /botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/a71f4ee1e84c6c0/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/e08495009d4823c/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/e08495009d4823c/output.txt Total script time: 14.56 mins
Image differences available at: http://107.22.172.223:8877/e08495009d4823c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/a71f4ee1e84c6c0/output.txt Total script time: 15.24 mins
Image differences available at: http://107.21.233.14:8877/a71f4ee1e84c6c0/reftest-analyzer.html#web=eq.log |
/cc @yurydelendik: Could you look into closing the browsers again? |
This timeouts locally as well, so the failures seem to be caused by the patch. |
// var bits = ... | ||
// var colorspace = ... | ||
var dict = image.dict; | ||
if (dict.get('Filter').name === 'JPXDecode') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the Filter
entry guaranteed to be present in the dictionary? If not, I suggest adding if (dict.has('Filter')) {
above to prevent issues.
Sorry, I should have tested this.
will fail, because data will contain the encrypted bytes. I'll try pass the stream instead to fix that. |
No, that was not the problem. Once all code that does not affect
|
All tests but |
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/a0ed46ac055f9ca/output.txt |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/a0ed46ac055f9ca/output.txt Total script time: 25.63 mins
Image differences available at: http://107.21.233.14:8877/a0ed46ac055f9ca/reftest-analyzer.html#web=eq.log |
(@Snuffleupagus don't try to re-run windows botio when /botio-windows test |
(@yurydelendik Sorry, I didn't pay enough attention to which tests that actually failed!) |
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/d9cba8fc0c5f65d/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/d9cba8fc0c5f65d/output.txt Total script time: 21.69 mins
Image differences available at: http://107.22.172.223:8877/d9cba8fc0c5f65d/reftest-analyzer.html#web=eq.log |
/botio makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/37e70fcb5e373b8/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_makeref from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/b6fd76fe93372b7/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/37e70fcb5e373b8/output.txt Total script time: 21.66 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/b6fd76fe93372b7/output.txt Total script time: 25.61 mins
|
Thank you for the patch |
Read color info from JPX stream + fix color problem #4540
/botio-windows makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/b64a05a3e20e07f/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/b64a05a3e20e07f/output.txt Total script time: 22.67 mins
|
These are two commits that I accicently squashed into one.
The first one gets color information directly from the JPX stream, to define the color space in
images.js
.This fixes #1303, #4407 (and all documents that are created with Acrobat 8 from JPX images).
I'm not 100% if this is how it is supposed to be done in
image.js
, so please have a look at that.The other commit corrects the coefficient magnitudes in
jpx.js
and so fixes #4540.Everything below Line 1000 in
jpx.js
is just minor cleanup.I opened another PR concurrently to #4538, because I wanted to fix errors first, and make the performance oriented changes of #4538 optional.