ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
6.86k stars 226 forks source link

PDF colors look weird and saturated #834

Open jonathan-sung opened 9 months ago

jonathan-sung commented 9 months ago

I'm not sure if I've overlooked a color setting or something, but by default some colors are not represented as they should be. I've attached a picture to show you what I mean. The colors of the PDF opened up in Evince look normal, but the colors look overly saturated on sioyek. Is this a bug, or is there a setting I can change to make it show the true colors? Thanks. colors

ahrm commented 9 months ago

I suspect it is probably a mupdf bug? Does it look correct on a mupdf-based reader (e.g. mupdf itself or zathura-mupdf)?

jonathan-sung commented 9 months ago

I think it might be a mupdf bug. The image on the left is sioyek, mupdf is the middle one, and evince is on the right. Both the left and middle look saturated. mupdf

jonathan-sung commented 9 months ago

After a bit of research, I found this: https://github.com/pymupdf/PyMuPDF/issues/397 It has something to do with ICC color spaces 🤷