Live data from Hacker News

Show HN: Invertornot.com – API to enhance your images in dark-mode

invertornot.com

11–20 of 39 posts

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#12

Semi-related - I saw this on https://v8.dev a while back, but `filter: hue-rotate(180deg) invert();` can be a neat CSS trick to 'dark mode' some kinds of graphics, while not screwing with the colours so much. The `hue-rotate` help a bit to keep 'blues blue' etc. It's far from perfect, but it's a neat one to have in your back pocket.

Anyone who thought Retool should have a dark mode has come across this. Definitely a useful trick.

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#13
post #10

How can you use or create this model for conventional non-API projects? Like to embed it within some C code?

They're using ONNX Runtime to run the model, which has a C API: https://onnxruntime.ai/docs/get-started/with-c.html. You could also use any other ML inference library that supports the ONNX format.

You'd need to look at this project's code to see how it converts input data to the expected matrix format, though.

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#15

Neat, as a reader, I've absolutely wanted this exact behavior many times. Do you have any examples of incorrectly classified images? As you say, the model seems quite simple, but I wonder if there are some pathological kinds of photographs that result in inversion.

Some recently-added datapoints I think the current model mis-classifies:

https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Pr... https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/US... https://upload.wikimedia.org/wikipedia/commons/thumb/d/d4/Na... https://upload.wikimedia.org/wikipedia/commons/thumb/b/bb/Li... https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Pi...

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#16

What I am interested in is a plugin/extension for Firefox/Chrome that can invert a video running on a page (darkreader is not doing that).

Does that really make sense? Unlike a single static image, a video is not one thing. It might go rapidly between invertible and non-invertible. Would you expect it to switch strategies potentially every scene or second...?

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#18
Does this distinguish white backgrounds from transparent backgrounds? For example, a graph consisting of anything-on-white should probably be inverted, while a graph consisting of pure red on transparent should probably not be inverted. For the latter, increasing the luminance (i.e. make it pink on transparent) might be best, followed by leaving it as-is, followed by inverting.

But I guess with ML reinforced by human feedback, trends like this manifest without having to explicitly handle them as special cases at all...

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#19
Huh. This is neat.

As a side, I have a great frustration balancing dark mode with other things. I use flux on my Mac, not for color temp but strictly for the "darkroom" mode which inverts everything and makes the (inverted) brightness values into red. I only do this when coding at night, to help with my sleep... but the trouble is it's made for people who use light mode during the day. I use dark mode all day. So I have to get out of dark mode and change my vscode theme to light in order for it to work. Not a huge deal, but then I open up some web page with a black background and go blind from all the red.

Re: Show HN: Invertornot.com – API to enhance your images in dark-mode

#20
post #12

Semi-related - I saw this on https://v8.dev a while back, but `filter: hue-rotate(180deg) invert();` can be a neat CSS trick to 'dark mode' some kinds of graphics, while not screwing with the colours so much. The `hue-rotate` help a bit to keep 'blues blue' etc. It's far from perfect, but it's a neat one to have in your back pocket.

Anyone who thought Retool should have a dark mode has come across this. Definitely a useful trick.

Hey This is cofounder of a retool alternative here.

We did introduce dark mode in a manner where a creator can even make it dynamic for end user to choose a different theme.

While I was loggerheads with my CTO cofounder on this - I am glad someone finds this useful in the community of users.

I am curious what kind of use case you have for retool/ alternate tools where you see dark mode as a need

Post reply on HN