frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Sharp Bilinear Filters: Big Clean Pixels for Pixel Art

https://bumbershootsoft.wordpress.com/2025/10/11/sharp-bilinear-filters-big-clean-pixels-for-pixel-art/
25•todsacerdoti•4d ago

Comments

jan_Inkepa•5h ago
Huh (having scanned but not read in detail the post), interesting approach. I'm not that well-versed in this area (as a game developer, I tend to jump straight to nearest-neighbour), but hadn't come across this before. I love the pathological example of a checkerboard pattern - very pleasing worst-case scenario, where I suspect it would just be a grey blur. However, the developer doesn't show us the equivalent for the suggested filter - systemically showing side-by-side comparisons of different filters would be useful. I suspect the resulting artefacts would be randomly blurry lines, which could also stand out. But nice to see people thinking about these things...

Here's a related disucssion on what 'pixelated' should mean from the css working group

https://github.com/w3c/csswg-drafts/issues/5837

(every so often browsers break/rename how nearest-neighbouring filtering works. I hope at some point it stabilizes lol - I note in the discussion linked nobody else cares about backwards compatibility ...).

scheeseman486•4h ago
For as long as emulators supported shaders I've gotten into the habit of configuring them to scale output 4x nearest neighbor and then downscaling that to the display resolution using bilinear, which has roughly the same results; it gets rid of shimmering without blurring everything to a smudge. On any 1080p display with lower resolution content it looks great, but the method starts to fall apart once you try to scale anything higher than 480p.

With a 4K display the pixel density is high enough that virtually everything looks good scaled this way, though once you go higher than SD content you're usually dealing with 720p and 1080p, both of which 2160p divides into evenly anyway.

It's surprising how often I see bad pixel art scaling given how easy it is to fix.

d_tr•2h ago
Sounds like exactly the same thing since bilinear filtering in the upscaled image only has an effect near the edges of the fat pixels.
CyberDildonics•34m ago
Downscaling using bilinear interpolation doesn't really make sense, since what you want is a weighted average of pixels to make one new pixel at the lower resolution.

Single bilinear samples can lose information and leave out pixels of the higher res image, it's essentially a worse triangle filter.

smallerize•3h ago
Ok but what does that image at the top look like with this new filter applied?
tobr•1h ago
An easy way to do this that I’ve used when resizing images in photoshop is to first scale it to the closest larger integer scaling factor of the target output using nearest neighbor, and then scale that down to the final result with bilinear or bicubic.

Claude Skills

https://www.anthropic.com/news/skills
52•meetpateltech•59m ago•25 comments

Hyperflask – Full stack Flask and Htmx framework

https://hyperflask.dev/
152•emixam•4h ago•32 comments

Video game union workers rally against $55B private acquisition of EA

https://www.eurogamer.net/ea-union-workers-rally-against-55bn-saudi-backed-private-acquisition-wi...
128•ksec•1h ago•58 comments

Lace: A New Kind of Cellular Automata Where Links Matter

https://www.novaspivack.com/science/introducing-lace-a-new-kind-of-cellular-automata
49•airesearcher•3h ago•20 comments

Ld_preload, the Invisible Key Theft

https://bomfather.dev/blog/ld-preload-the-invisible-key-theft/
25•nathan_naveen•1h ago•26 comments

Upcoming Rust language features for kernel development

https://lwn.net/Articles/1039073/
242•pykello•10h ago•143 comments

Why more SaaS companies are hiring chief trust officers

https://www.itbrew.com/stories/2025/10/14/why-more-saas-companies-are-hiring-chief-trust-officers
20•PwnEmAll•1h ago•11 comments

A stateful browser agent using self-healing DOM maps

https://100x.bot/a/a-stateful-browser-agent-using-self-healing-dom-maps
73•shardullavekar•4h ago•42 comments

Launch HN: Inkeep (YC W23) – Collaborative agent builder for devs and non-devs

https://github.com/inkeep/agents
40•engomez•4h ago•36 comments

Why I Chose Elixir Phoenix over Rails, Laravel, and Next.js

https://akarshc.com/post/phoenix-for-my-project.html
129•akarshc•3h ago•105 comments

VOC injection into a house reveals large surface reservoir sizes

https://www.pnas.org/doi/10.1073/pnas.2503399122
52•PaulHoule•4d ago•31 comments

Electricity can heal wounds three times as fast (2023)

https://www.chalmers.se/en/current/news/mc2-how-electricity-can-heal-wounds-three-times-as-fast/
27•mgh2•4h ago•14 comments

Tor browser removing various Firefox AI features

https://blog.torproject.org/new-alpha-release-tor-browser-150a4/
249•HelloUsername•2h ago•160 comments

Improving the Trustworthiness of JavaScript on the Web

https://blog.cloudflare.com/improving-the-trustworthiness-of-javascript-on-the-web/
13•doomrobo•2h ago•5 comments

Jiga (YC W21) Is Hiring Full Stacks

https://www.workatastartup.com/jobs/44310
1•grmmph•5h ago

New coding models and integrations

https://ollama.com/blog/coding-models
174•meetpateltech•11h ago•56 comments

JustSketchMe – Digital Posing Tool

https://justsketch.me
166•surprisetalk•6d ago•28 comments

Liquibase continues to advertise itself as "open source" despite license switch

https://github.com/liquibase/liquibase/issues/7374
292•LaSombra•9h ago•255 comments

TurboTax’s 20-year fight to stop Americans from filing taxes for free (2019)

https://www.propublica.org/article/inside-turbotax-20-year-fight-to-stop-americans-from-filing-th...
613•lelandfe•11h ago•324 comments

Flies keep landing on North Sea oil rigs

https://theconversation.com/thousands-of-flies-keep-landing-on-north-sea-oil-rigs-then-taking-off...
185•speckx•6d ago•104 comments

Trusting builds with Bazel remote execution

https://jmmv.dev/2025/09/bazel-remote-execution.html
3•jmmv•3d ago•4 comments

The people rescuing forgotten knowledge trapped on old floppy disks

https://www.bbc.com/future/article/20251009-rescuing-knowledge-trapped-on-old-floppy-disks
79•jnord•5d ago•33 comments

Silver Snoopy Award

https://www.nasa.gov/space-flight-awareness/silver-snoopy-award/
89•LorenDB•4d ago•19 comments

Credential Stuffing

https://ciamweekly.substack.com/p/credential-stuffing
39•mooreds•2d ago•26 comments

The Hidden Math of Ocean Waves Crashes Into View

https://www.quantamagazine.org/the-hidden-math-of-ocean-waves-crashes-into-view-20251015/
57•pykello•10h ago•2 comments

LINQ and Learning to Be Declarative

https://www.nickstambaugh.dev/posts/LINQ-and-being-declarative
41•sieep•1w ago•41 comments

Apple M5 chip

https://www.apple.com/newsroom/2025/10/apple-unleashes-m5-the-next-big-leap-in-ai-performance-for...
1204•mihau•1d ago•1307 comments

Sharp Bilinear Filters: Big Clean Pixels for Pixel Art

https://bumbershootsoft.wordpress.com/2025/10/11/sharp-bilinear-filters-big-clean-pixels-for-pixe...
25•todsacerdoti•4d ago•6 comments

Free applicatives, the handle pattern, and remote systems

https://exploring-better-ways.bellroy.com/free-applicatives-the-handle-pattern-and-remote-systems...
85•_jackdk_•13h ago•27 comments

A Gemma model helped discover a new potential cancer therapy pathway

https://blog.google/technology/ai/google-gemma-ai-cancer-therapy-discovery/
206•alexcos•22h ago•50 comments