Skip to content
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

Browser.html icons look pixelated #11960

Open
fabricedesre opened this issue Jun 30, 2016 · 20 comments
Open

Browser.html icons look pixelated #11960

fabricedesre opened this issue Jun 30, 2016 · 20 comments

Comments

@fabricedesre
Copy link
Contributor

@fabricedesre fabricedesre commented Jun 30, 2016

See http://imgur.com/Bf7THC0 : screenshot from a linux debug build, on ubuntu 16.04.

@Coder206
Copy link
Contributor

@Coder206 Coder206 commented Jun 30, 2016

This is also the case for Windows 10.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Jun 30, 2016

non-hidpi display?

@metajack
Copy link
Contributor

@metajack metajack commented Jun 30, 2016

@Coder206 what do you mean? which icons? I definitely added high dpi support to Windows, and it hasn't regressed that I've seen.

@Coder206
Copy link
Contributor

@Coder206 Coder206 commented Jun 30, 2016

@fabricedesre
Copy link
Contributor Author

@fabricedesre fabricedesre commented Jun 30, 2016

non-hidpi display?

Yep. Good old thinkpad 1366x768 pixels at 96dpi.

@Coder206
Copy link
Contributor

@Coder206 Coder206 commented Jun 30, 2016

@metajack How can I tell that I have hidipi on Windows?

@cbrewster
Copy link
Member

@cbrewster cbrewster commented Jun 30, 2016

Is this on a debug or release build. I noticed the images looked blurry on debug, but fine on release.

@Coder206
Copy link
Contributor

@Coder206 Coder206 commented Jul 1, 2016

@ConnorGBrewster For me (^): release.

@fabricedesre
Copy link
Contributor Author

@fabricedesre fabricedesre commented Jul 1, 2016

Is this on a debug or release build. I noticed the images looked blurry on debug, but fine on release.

Same on release & debug for me.

@cbrewster
Copy link
Member

@cbrewster cbrewster commented Jul 6, 2016

I have noticed that non-wr causes these icons to look pixelated. WR is not enabled by default on Windows, correct?

@jdm
Copy link
Member

@jdm jdm commented Jul 6, 2016

WR is not default anywhere yet.

@cbrewster
Copy link
Member

@cbrewster cbrewster commented Jul 6, 2016

@jdm I mean -b implies -w except on Windows.

Edit: now that I look, it looks like -w is also passed when using -b on Windows.

@atouchet
Copy link
Contributor

@atouchet atouchet commented Jun 11, 2017

It looks like there may be some image scaling issues going on. I made a comparison picture of Servo vs. Firefox rendering the home screen (Firefox is the top result and Servo is the bottom):

Image Comparison

There are some pretty noticeable aliasing and legibility problems with the Servo example.

@metajack
Copy link
Contributor

@metajack metajack commented Jun 13, 2017

@jonathandturner
Copy link

@jonathandturner jonathandturner commented Jun 13, 2017

@atouchet - what hardware/OS are you running? I've noticed different things with different video cards

@atouchet
Copy link
Contributor

@atouchet atouchet commented Jun 13, 2017

@jonathandturner Windows 10 with Nvidia GeForce GTX 580.

@jonathandturner
Copy link

@jonathandturner jonathandturner commented Jul 4, 2017

Now that I have my laptop back, I can repro this. Seems like it's particular to certain video cards/resolutions.

screen shot 2017-07-05 at 11 41 33 am

@atouchet
Copy link
Contributor

@atouchet atouchet commented Jul 8, 2017

I tried re-testing this with a Nvidia GeForce GTX 1050 Ti and I am still getting the same issue. For what it's worth I am also using a 1080p monitor.

@atouchet atouchet changed the title b.html icons look pixelated Browser.html icons look pixelated Oct 17, 2017
@atouchet
Copy link
Contributor

@atouchet atouchet commented Oct 17, 2017

Looking at this more I am fairly sure that it's an image scaling issue with Servo. I noticed that the Moiré demo tile appears noticeably different in Servo and Firefox when they both load the Browser.html homepage. So I tried independently scaling the original 800 x 500 tile using bicubic, bilinear, and nearest neighbour scaling to 160 x 100 to match the Browser.html homescreen.

Results:

Scaling

And here is the Browser.html homescreen (Firefox top, Servo bottom):

Firefox

Servo

Firefox looks to be using bicubic or bilinear scaling while Servo looks to be using nearest neighbour which explains why the tiles look more pixelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants
You can’t perform that action at this time.