[okular] [Bug 461012] Feature request: Add a possibility for image to ignore color change

Daniel bugzilla_noreply at kde.org
Wed Oct 18 20:47:01 BST 2023


https://bugs.kde.org/show_bug.cgi?id=461012

Daniel <naquad at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |naquad at gmail.com

--- Comment #4 from Daniel <naquad at gmail.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list