A-ads

Display images in Termux (Android terminal) using Termimage | open jpeg ,png file in Termux

 Hallow friends are you a Termux user and want to open any images from termux,but you have not found a way to open any image file from Android terminal (Termux).Then you are reading the right article.In this article I will tell you about a package that can open any picture in Termux.And the name of this package is Termimage.



What is Termimage and what does it actually do

So Termimage is nothing but a package in termux that allows to print any image file inside the termux terminal in text art format.This script will not show you a clear image as we see an image in the gallery.This command will help you if you create a tool and want to make an attractive banner for this tool.This command is very useful for immediately checking a file inside Termux.
But remember if the image size is too large then then this script may take too time to open that image.And Termux may hanged for a while.so dont use an image file larger than 1MB.

How to install termimage package in Termux

The size of termimage package is soo small so it will not take a large time to download.Just using a single command you can download and install this package in Termux.so the required command is

pkg install termimage

if you are facing any problem to use this command i will recommend you to use tha command pkg update && pkg upgrade before that.

Then use the command

termimage --help

To show its uses.

USAGE:

    termimage [FLAGS] [OPTIONS] <IMAGE>


FLAGS:

    -f, --force   :-   Don\'t preserve the image\'s aspect ratio
   -h, --help    :-   Prints help information
    -V, --version  :-  Prints version information


OPTIONS:

    -a, --ansi <ANSI>    Force output ANSI escapes [possible values: truecolor, simple-black
, simple-white]
    -s, --size <size>    Output image resolution [default: 96x53]


ARGS:

    <IMAGE>    Image file to display

Open an iamge file in Termux using Termimage

let us asume that we have an image file dinosour.jpeg in our Termux.And we want to open it in termux then we have to use the command


termimage dinosour.jpeg



To select the image size use command

termimage dinosour.jpeg -s 120x180

To select the background colour use command

termimage dinosour.jpeg -a simple-black
To select tha destination of the image

termimage /sdcard/tx-picture/dinosour.png
Visit our YouTube channel to know more about Termux


Our other posts


Post a Comment

0 Comments