Summary: | Feature request: Add a possibility for image to ignore color change | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Choca <styfros> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | cipricus, davidkacerek, naquad |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | All | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=409508 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Choca
2022-10-26 11:10:56 UTC
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. |