frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Better SRGB to Greyscale Conversion

https://30fps.net/pages/better-srgb-to-greyscale/
17•ibobev•5d ago

Comments

ansgri•1h ago
The issue with color to grayscale conversion for human consumption is in most cases there is no well-defined ground truth. People don’t see in grayscale, so the appearance preservation approach doesn’t work. And the source image was most likely heavily color corrected to match certain aesthetic. So the problem becomes “to preserve as much information, both content and aesthetic, within constraints of the target grayscale medium”.

The bottom line is, use some standardized conversion (like described here — just to avoid surprising users) if images don’t actually matter, some contrast-preserving method if content matters, and edit creatively otherwise.

ChrisMarshallNY•1h ago
I used to do a lot of image processing programming.

The basic way to do it, is with weighted LUTs. The "poor man's conversion" was to just convert the green channel, and toss out the red and blue.

uninformedprior•40m ago
I ran into this subjectiveness in graphics recently. Thought I was doing the "correct" thing blending in linear space but turns out blending in SRGB looks a lot better for certain applications and that's what most popular applications do.
zokier•36m ago
for blending oklab almost always works better than srgb (linear or gamma).
uninformedprior•9m ago
It's possible I wasn't specific enough when I said "graphics". Typically I blend in CIELAB when interpolating between colors.

But I'm unaware of rendering engines that do alpha blending in something other than linear or SRGB. Photoshop, for instance, blends in sRGB by default, while renderers that simulate light physically will blend in linear RGB (to the best of my knowledge).

It depends on the GPU and the implementation, but I personally would not want to spend the compute on per-pixel CIELAB conversions for blending.

ChrisMarshallNY•31m ago
The thing that is difficult to "math," is that we perceive color in a certain way (if you ever look at the CIELAB[0] space, that's based on human eye perception). So there's a lot of "it just don't look right." involved.

I have found that getting weighted LUTs that have been extracted from some process (math, context measurements, user testing, etc.), and simply applying them in the conversion is how you execute the conversion, but generating the LUTs is the tricky part. It's not always best handled by a formula. I guess you could really go crazy, and generate the LUT on the fly, as a per-pixel conversion (we actually did something like this, for RAW conversion).

[0] https://en.wikipedia.org/wiki/CIELAB_color_space

Ozempic's Patent Expires in January: Novo Nordisk's Canadian Mistake

https://www.science.org/content/blog-post/novo-nordisk-s-canadian-mistake
49•jbm•49m ago•6 comments

Doing well in your courses: Andrej's advice for success (2013)

https://cs.stanford.edu/people/karpathy/advice.html
270•peterkshultz•4h ago•105 comments

Dosbian: Boot to DOSBox on Raspberry Pi

https://cmaiolino.wordpress.com/dosbian/
59•indigodaddy•2h ago•16 comments

Airliner hit by possible space debris

https://avbrief.com/united-max-hit-by-falling-object-at-36000-feet/
75•d_silin•3h ago•25 comments

Compare Single Board Computers

https://sbc.compare/
71•todsacerdoti•3h ago•23 comments

GNU Octave Meets JupyterLite: Compute Anywhere, Anytime

https://blog.jupyter.org/gnu-octave-meets-jupyterlite-compute-anywhere-anytime-8b033afbbcdc
82•bauta-steen•5h ago•11 comments

Bible and Quran apps flagged NSFW by F-Droid

https://forum.f-droid.org/t/nsfw-flag-incorrectly-added-to-bible-and-quran-apps/33401
4•jtlebigot•8m ago•0 comments

Could the XZ backdoor been detected with better Git/Deb packaging practices?

https://optimizedbyotto.com/post/xz-backdoor-debian-git-detection/
32•ottoke•3h ago•19 comments

The Spilhaus Projection: A world map according to fish

https://southernwoodenboatsailing.com/news/the-spilhaus-projection-a-world-map-according-to-fish
63•zynovex•1w ago•10 comments

The working-class hero of Bletchley Park you didn't see in the movies

https://www.theguardian.com/world/2025/oct/12/move-over-alan-turing-meet-the-working-class-hero-o...
44•hansmayer•1w ago•9 comments

Replacement.ai

https://replacement.ai
866•wh313•7h ago•562 comments

Comparing the power consumption of a 30 year old refrigerator to a new one

https://ounapuu.ee/posts/2025/10/14/fridge-power-consumption/
66•furkansahin•5d ago•103 comments

The Trinary Dream Endures

https://www.robinsloan.com/lab/trinary-dream/
33•FromTheArchives•4h ago•44 comments

Show HN: Duck-UI – Browser-Based SQL IDE for DuckDB

https://demo.duckui.com
166•caioricciuti•10h ago•53 comments

Infisical (YC W23) Is Hiring Full Stack Engineers

https://www.ycombinator.com/companies/infisical/jobs/0gY2Da1-full-stack-engineer-global
1•vmatsiiako•4h ago

The macOS LC_COLLATE hunt: Or why does sort order differently on macOS and Linux (2020)

https://blog.zhimingwang.org/macos-lc_collate-hunt
59•g0xA52A2A•8h ago•11 comments

How to Assemble an Electric Heating Element from Scratch

https://solar.lowtechmagazine.com/2025/10/how-to-build-an-electric-heating-element-from-scratch/
71•surprisetalk•8h ago•43 comments

Abandoned land drives dangerous heat in Houston, study finds

https://stories.tamu.edu/news/2025/10/07/abandoned-land-drives-dangerous-heat-in-houston-texas-am...
103•PaulHoule•7h ago•105 comments

Show HN: Pyversity – Fast Result Diversification for Retrieval and RAG

https://github.com/Pringled/pyversity
56•Tananon•7h ago•5 comments

Ask HN: Those who applied to the OpenAI Grove program, did you ever hear back?

5•heywoods•26m ago•0 comments

Ask HN: What are people doing to get off of VMware?

68•jwithington•4h ago•53 comments

The case for the return of fine-tuning

https://welovesota.com/article/the-case-for-the-return-of-fine-tuning
119•nanark•11h ago•65 comments

Scheme Reports at Fifty

https://crumbles.blog/posts/2025-10-18-scheme-reports-at-fifty.html
36•djwatson24•6h ago•12 comments

The White House is already one of the most blocked accounts on Bluesky

https://techcrunch.com/2025/10/19/the-white-house-is-already-one-of-the-most-blocked-accounts-on-...
43•dxs•1h ago•18 comments

RFCs: Blueprints of the Internet

https://ackreq.github.io/posts/what-are-rfcs/
95•ackreq•6h ago•75 comments

Redis Backplane for Hubots

https://github.com/hubot-friends/hubot-redis-backplane
3•gijoeyguerra•5d ago•1 comments

Xubuntu.org Might Be Compromised

https://old.reddit.com/r/Ubuntu/comments/1oa4549/xubuntuorg_might_be_compromised/
266•kekqqq•7h ago•107 comments

Show HN: Open-Source Voice AI Badge Powered by ESP32+WebRTC

https://github.com/VapiAI/vapicon-2025-hardware-workshop
34•Sean-Der•1w ago•3 comments

Improving PixelMelt's Kindle Web Deobfuscator

https://shkspr.mobi/blog/2025/10/improving-pixelmelts-kindle-web-deobfuscator/
79•ColinWright•9h ago•13 comments

Windows 11 25H2 October Update Bug Renders Recovery Environment Unusable

https://www.techpowerup.com/342032/windows-11-25h2-october-update-bug-renders-recovery-environmen...
113•MaximilianEmel•5h ago•56 comments