You are not logged in.
I'm trying to convert a jpg image to ascii art by using asciiview. However it is throwing the following error
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 7
Current serial number in output stream: 8I have aalib installed. I also installed xorg-fonts-misc but nothing happened.
aview version 1.3.0_rc1
aalib version 1.4rc5
The program works flawlessly in virtual terminals but not inside X environment.
Live long and prosper.
Offline
I don't know where the program 'asciiview' is at.
Have you tried jp2a, im2a or aview instead?
Offline
Asciiview is just a wrapper for aview from the aur package aview. The error is with aview itself - I just freshly built and installed it and got the same error. Given that upstream developement stopped on a "release candidate" 20 years ago and has done nothing since, I suspect it is unlikely that they will provide a fix. As noted above, there are much better alternatives available for the conversion. And there is no need for an ascii image converter to try to include it's own x11 viewer. Once converted to text/ascii, you can just print it in a terminal or open in any text editor.
One major benefit of the alternatives is they have options to preserve the color (using ansi color escape codes, or some have options to generated color styled html text). Asciiview/aview converts to PNM first which is just grayscale.
Last edited by Trilby (2020-07-01 12:19:38)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank you everyone for your kind replies. However I am very embarassed to tell you that simply rebooting the system after installing xorg-fonts-misc solved the issue. I should have done that before making the post. Again, thank you.
Live long and prosper.
Offline
That does seem sufficient to fix it here as well - the AUR package should be fixed to include th proper dependencies.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline