Is inverting the colors in a photo ever the right choice? People come out looking really strange.
Show HN: Invertornot.com – API to enhance your images in dark-mode
31–39 of 39 posts
Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#32CSS:
img[src^="/images/invertable"] {
filter: hue-rotate(180deg) invert(1);
}
Now all image names starting with "invertable" will be inverted.Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#33EDIT: from another comment - actually "inverting" seems to refer to doing
hue-rotate(180deg) invert()
...which (if I read it correctly) inverts the hue of colored areas before applying the actual inversion in order to keep the colors the same (more or less - see also https://stackoverflow.com/questions/65344006/why-does-filter...) ? Not a frontend developer, so I wasn't familiar with this trick until now. TIL...Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#34Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#35Earlier quoted context omitted.
Close to 100%, this problem seem to be easily solved by the model. I plan to do cross validation and also to explore the use of a smaller model.
Did you separate the test dataset from the training one?
In practice, the accuracy, whatever it is, appears to be very high and more than adequate to justify its use.
Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#36If you don't have a lot of images, you can go over them all manually and write the "please invert me" request directly into the filename. CSS: img[src^="/images/invertable"] { filter: hue-rotate(180deg) invert(1); } Now all image names starting with "invertable" will be inverted.
It's just that often you do have a lot of images and, more importantly, they may not be known in advance. If images are dynamic, then you obviously can't go over them manually, no matter how few of them there are.
This was the principal motivation for me for InvertOrNot.com: I am willing to manually classify hundreds or thousands of images for inversion, and I did, but what I can't do is do that for all of the many Wikipedia popups on gwern.net - not just because there's 22k+ of them, but because they are constantly being added, WP articles are constantly changing, and they are fully recursive so a reader could pop up any WP article. A fully-automated API is the only possible solution. (Doesn't have to be neural nets, that's just the most obvious & easiest approach; I expect classical approaches would work too and would be easier to get running in-browser too.)
And then if you have a high-quality fully-automated API, then you might as well drop the manual classifying. It's tedious and adds friction to writing.
Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#37Earlier quoted context omitted.
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
Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#38Earlier quoted context omitted.
Did you separate the test dataset from the training one?
Does it matter? It's not a research project trying to rigorously evaluate novel architectural modifications or something, but just a project trying to be useful within the limited resources of a hobbyist. If someone labeled a bunch of the remaining errors, that data would then be better used as more training data than to benchmark. In practice, the accuracy, whatever it is, appears to be very high and more than adequ…
Re: Show HN: Invertornot.com – API to enhance your images in dark-mode
#39What 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...?