The below keyboard shortcuts allow you to control the images: To view the image in ASCII format, you can use the “-t” flag: $ fim -t bird.jpg Use the “Pageup/Down” keyboard shortcuts to move to the next or previous image: $ fim -a *.jpg If you want to open multiple image files in the current directory, use the wildcard to open them all. You can automatically zoom an image using the "-a"option: $ fim -a bird.jpg Once installed, you can display an image using the following command: $ fim bird.jpg $ sudo apt install fim 2.b) Viewing images with fim For other distributions, you may need to compile it from the source. 2.a) Installing fim in Ubuntu/DebainįIM can be easily installed on Debian/Ubuntu based systems as the package is available in the distribution official repository. FIM stands for Fbi IMproved, which is the fork of the Fbi Image viewer. The right video mode gets auto-detected or selected at runtime, and may be opted in/out before build at configure time, if desired. Rendered as ASCII Art in any textual console, using the AAlib library. Graphically, under X/Xorg, using the Imlib2 library.Graphically, under X/Xorg, using the SDL library.Graphically, with the Linux framebuffer device.It can open many file formats and can display images in the following video modes: It’s a lightweight tool as it only depends on a few libraries. It displays the image in full screen and can be easily controlled using the keyboard shortcuts. It is highly customizable and scriptable image viewer for users who are familiar with software’s like the VIM text editor. But it is not limited to Linux and can be configured to run on other OS such as MS-Windows. $ display - resize 600x400 ~/Downloads/bird.jpĪlternatively, you can use ‘%’ to resize the image: $ display -resize 50% ~/Downloads/bird.jpg 2) How to display images from the terminal using fim commandįIM is a lightweight global image viewer designed specifically for Linux. If you want to ‘resize’ the image with the display command, use the following format. The below command opens your image ‘800’ pixels from the top and ‘800’ pixels from the top left corner of your desktop: $ display -geometry 1000圆00+ 800+800 ~/Downloads/bird.jpg You can also input position information of the image with the ‘display’ command. $ display - geometry 1000圆00 ~/Downloads/bird.jpg Make a note: Make sure you already have “ Development Tools” installed on your Linux system as a prerequisite for this. Use the distribution package manager to install it. The ImageMagick package is included in the official repository of most Linux distributions. It also supports batch process, which allow you to process several images at once. It can resize, mirror, rotate, transform images, adjust image colors, apply various special effects, etc. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, PDF, SVG, etc. It is used to create, edit, compose, or convert bitmap images. ImageMagick is a free and open source, feature-rich, command-line based image manipulation tool. 1) Viewing images from terminal using display command These commands use the system’s framebuffer to display images directly from the command line. We will show you how to install and use it to view images from the Linux terminal. This is a great tool that allows NIX users to view images from the terminal.Īlso, I got another great tool called FIM for this purpose. The command name is “display”, which is part of the ImageMagick tool. But have you ever tried a CLI application to view them or do you know if one exists?įortunately, while working with the ImageMagick tool I stumbled upon a command to view an image from the terminal. Linux has many GUI applications for viewing images.
0 Comments
Leave a Reply. |