Hey Guys🙋♂️, I have already written a post on how you can open Image files directly in termux, But there is another method that will open your Image file in a single command but this method will not open your files in any image-viewer but it will open your image file in text art format.
Termimage is a simple package in termux that allows you to print any image file inside the termux terminal in text art format. This command is helpful if you wanna print any image in the terminal. also sometimes when we are using termux and we are working with multiple files at the same time and if we wanna look quickly inside an image file to see if it’s the right one or not then this package can help us there.
The Important thing to keep here in mind that this will not show you clear images If the image file size is large. so this will work better with logos than the image that you have captured with your phone camera. If you wanna add your youtube channel or any logo in termux when you open any session then termimage can help, also if you are creating tools for termux then you can also use this tool to print something fancy in the terminal.
To use the Termimage tool in termux you have to first install a small package, and for that, you can use a single line command that I have given you below. This is just a one-time process so once you install this package you can use this command till you uninstall termux or clear the data of the termux app.
The Package size is so small so it will be installed in few seconds. if by any chance this command doesn’t work then you can use pkg update command to update the termux then after that you will face no issues.
To display any image in termux terminal you just have to type the below command and the image will be displayed on your termux terminal. Make sure you change the green part of the command with the name or path of the image.