Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
londons_explore
on Feb 16, 2023
|
parent
|
context
|
favorite
| on:
The dangers behind image resizing (2021)
Browsers now 'deliberately' do it wrong, because web developers have come to rely on the fact that a 50/50 blend of #000000 and #FFFFFF is #808080
planede
on Feb 16, 2023
|
next
[–]
I'm a little bit sympathetic for doing it wrong on gradients (having said that SVG spec has an opt-in to do the interpolation in linear colorspace, and browsers don't implement it). But not for images.
unconed
on Feb 16, 2023
|
prev
[–]
Linear RGB blending also requires >8 bit per channel for the result to avoid noticeable banding.
It is unquestionably superior though.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: