Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@vintprox
I mean like displayed unscaled at a whole pixel position with its original width and height defined in pixels.
It looks like in Gimp when viewed in Firefox.
The PNG has no transparency.
I tried the pixelation CSS - but then Chrome goes out of its way to distort some pixels.
It looks like Chrome is doing some rescaling even though the image is displayed at its exact original size... -
It seems to be a fractal problem - getting more ugly the more you dig...
Chrome actually renders the image smaller than defined. It gives the correct size in the inspector - but a screenshot reveals literal pixel loss.
WTF is going on here? -
Does it also happen when you display the PNG in Chrome directly, i.e. not embedded within a page?
-
C0D4669023ySounds like you want to control the image renderer, however if you're not up/down scaling the images this shouldn't be the problem.
https://developer.mozilla.org/en-US... -
Okay, found it:
Giving --force-device-scale-factor=1 to the chrome executable fixes the issue.
I still don't know, why there was any scaling going on in the first place...
...and how to prevent that from happening to other users visiting the site. -
Use the correct scaling factor for your display. It’s no use to change the flag when you fucked ur system with a wrong factor.
-
@RocketSurgeon
That is the least clean solution for now.
I feel like needing a shower just by reading it...
Is it possible to display a PNG as it is given (without any extra blurring or "smoothing") in Chrome?
question