Thanks so much for checking it out on your system. I was afraid of that.
I'll update the original post with the system specs. The ghostscript version is 9.55.0, installed by homebrew on /usr/local/bin as standard.
I'm not sure how xnview has access to it unless that path is coded in though, as it should not be available to gui apps launched from the finder.
I have done what was recommended in the forums:
Code: Select all
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
but that made no difference.* From my understanding, that should not make any difference on my system anyway, since that workaround is not meant to work on the latest MacOS versions (I'm on v.11, Big Sur). This makes sense, as that would open up all gui apps to the homebrew bin dir which may break things. From what I gather this should be written in the plist of xnview, or somewhere else. I have since reverted to the default.
I also launched xnview from the terminal, hoping it would bring in the environment variables for gs correctly. It displays the same behaviour. It also prints a bunch of errors / warnings on the terminal console, related to libpng which I don't think are relevant:
Code: Select all
libpng warning: iCCP: known incorrect sRGB profile
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 20, 20, 20, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 223, 223, 223, 255'
qt.qpa.fonts: Populating font family aliases took 874 ms. Replace uses of missing font family ".SF NS Text" with one that exists to avoid this cost.
All other image viewers and browsers are displaying the pdfs correctly (though I don't believe they use homebrew's gs). In addition, this only happens in xnview with some pdfs, like the one I sent, which is generated by latex through matplotlib.
* the forum recommendation was actually this, but there is no /opt/homebrew directory:
Code: Select all
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin
Either way, would it not be possible to include the Ghostscript binary in xnview (i realise it's agpl.....)?
Here's a screenshot of what I see: