-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Always enable smoothing when rendering downscaled image #17868
Conversation
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.
Looks good! Is there perhaps a reference to an issue (either on GitHub or Bugzilla), or does it not exist (yet)? If this improves a particular PDF file, would it be possible to add a reference test for this improvement so we avoid regressing it in the future or is it already covered by the existing reference tests?
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/5f73ea89661b0f7/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/7f9e2fca1a5f7af/output.txt |
|
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/7f9e2fca1a5f7af/output.txt Total script time: 26.23 mins
Image differences available at: http://54.241.84.105:8877/7f9e2fca1a5f7af/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/5f73ea89661b0f7/output.txt Total script time: 42.92 mins
Image differences available at: http://54.193.163.58:8877/5f73ea89661b0f7/reftest-analyzer.html#web=eq.log |
1558a40
to
45b15aa
Compare
/botio browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/78e3c81b81dcbab/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/d434381c52606ed/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/d434381c52606ed/output.txt Total script time: 18.25 mins
Image differences available at: http://54.241.84.105:8877/d434381c52606ed/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/78e3c81b81dcbab/output.txt Total script time: 27.10 mins
Image differences available at: http://54.193.163.58:8877/78e3c81b81dcbab/reftest-analyzer.html#web=eq.log |
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.
I think this change is correct, with the two questions answered/addressed, and overall this seems like a good rendering improvement to me. It would be good though if @Snuffleupagus also signed off on this before merging, to make sure I didn't miss anything since this logic is important for rendering and it seems a bit tricky looking at how the spec describes it and how other viewers implement it.
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.
Looks good to me, with the remaining comment above addressed (and the tests re-run if the change is made) and a check from @Snuffleupagus. Thank you for improving this!
@Snuffleupagus, gentle ping ? |
Sorry, last I looked at this there were still "open" review questions and then it slipped my mind (since I'm still short on time for open source stuff). |
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.
Let's try this and see how it works out, but we should obviously be prepared to (if necessary) tweak the logic and/or back-out this if there's any "serious" regressions in Firefox.
and rely on the Interpolate flag only when the image is upscaled. Fixes mozilla#16273.
45b15aa
to
b511878
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1b259618dc2ab93/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/1ce3caf39edd715/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/1b259618dc2ab93/output.txt Total script time: 27.18 mins
Image differences available at: http://54.241.84.105:8877/1b259618dc2ab93/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/1ce3caf39edd715/output.txt Total script time: 43.04 mins
Image differences available at: http://54.193.163.58:8877/1ce3caf39edd715/reftest-analyzer.html#web=eq.log |
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/b13a432d5316a70/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/4233a562b108213/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/b13a432d5316a70/output.txt Total script time: 19.41 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/4233a562b108213/output.txt Total script time: 24.95 mins
|
and rely on the Interpolate flag only when the image is upscaled.
Fixes #16273.