[okular] [Bug 192623] add color management support to Okular

Tobias Bora bugzilla_noreply at kde.org
Tue Feb 13 00:51:42 GMT 2024


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

--- Comment #5 from Tobias Bora <tobias.bora at gmail.com> ---
Created attachment 165791
  --> https://bugs.kde.org/attachment.cgi?id=165791&action=edit
PDF: see that the input profile is respected if the file is properly inputted
(second column). But the monitor profile is not applied (cf screenshot)

Generated with:

\documentclass{article}

\usepackage{graphicx}
\usepackage{robust-externalize}

\robExtConfigure{
  enable fallback to manual mode,
  new preset={icc image xelatex}{
    latex,
    add to preamble={\usepackage{graphicx}},
    use xelatex,
  },
}

\NewDocumentCommand{\includegraphicsICC}{D<>{}O{}m}{%
  \cacheMe[
    icc image xelatex,
    add to includegraphics options={#2},
    dependenciesList={#3},
    #1
  ]{\includegraphics{__ROBEXT_WAY_BACK__#3}}
}

\begin{document}

Compare:
\includegraphics[width=5cm]{should_be_blue.jpg}
With:
\includegraphicsICC[width=5cm]{should_be_blue.jpg}

\includegraphics[width=5cm]{tree.jpg}
vs
\includegraphicsICC[width=5cm]{tree.jpg}


\end{document}

% Local Variables:
% TeX-command-extra-options: "--shell-escape -halt-on-error"
% End:

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


More information about the Okular-devel mailing list