When you open an Image with inverted color mode I would like to have the possibility for the image to remain as the original onr. STEPS TO REPRODUCE 1. Open pdf 2. Use the invert color mode or any other mode 3. Look at the pdf OBSERVED RESULT The image is inverted which does not help readability. EXPECTED RESULT As expected SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
The only use for color change in images seem to be when the images are images of text. In many cases they are not, so changing their colors is not useful and should be optional.
You forget the superweapon of digitalization: scanned PDFs. ;)
(In reply to David Hurka from comment #2) > You forget the superweapon of digitalization: scanned PDFs. ;) There are indeed many pdf files made out of images (that is: images of text), but not most of them, and many are a mix of text (not image) and image (pictures, pictural forms, not text). For the latter it makes no sense whatsoever to see them inverted or with their colors modified according to a setting that makes sense only for text. Therefore an option not to apply to image the color for text (non-image text) would be great. (e.g. such option is present in Foxit Reader for Linux).
This is a very interesting and highly desired feature for me (personal issues reading from a big screen). I've found out that Zathura performs recoloring w/o affecting images. It does so by retrieving the list of images of the page with the corresponding coordinates and then skipping those during the recolor. Okular's recoloring is happening in https://github.com/KDE/okular/blob/master/gui/pagepainter.cpp#L689 but that function has no access to the PDF details as they're hidden behind the abstract interface of the Generator which does not provide any details. Unfortunately, my try to add bool Generator::mediaBoxes(QList<QRect>& boxes) const and pass those boxes to recolor has failed around trying to get the Generator for the page :( I didn't even get to transforming the boxes according to the page. Anyway, both hands for that feature.