Linux command
fim 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View images
fim [image.jpg]
View all images
fim [path/to/directory/]
View images recursively
fim -R [path/to/directory/] --sort
Force ASCII art output
fim -t [image.jpg]
Enable autozoom
fim -a [image.jpg]
Run slideshow
fim --slideshow [5] [path/to/directory/]
Specify output device
fim --output-device [sdl|fb|aa|ca] [image.jpg]
说明
FIM (Fbi IMproved) is a versatile image viewer that works across different graphical environments. It automatically selects the most suitable display method: SDL under X, framebuffer on console, or ASCII art (via aalib/libcaca) when no graphical output is available. FIM supports common image formats natively (BMP, PCX) and through libraries (JPEG, PNG, GIF, TIFF, PPM, WEBP, AVIF). Additional formats are supported via external converters. The companion script fimgs can display PDF, PostScript, DVI, and compressed archives containing images. The viewer is keyboard-oriented with no graphical menus. It features an internal command language for scripting and customization, and can interact with standard input/output for pipeline integration.
参数
- -a, --autozoom
- Automatically pick a reasonable zoom factor for each image.
- -t, --no-framebuffer
- Use ASCII art driver (libcaca for color, aalib for monochrome).
- -R
- Recursively load images from directories.
- --sort
- Sort the file list alphabetically.
- --slideshow _SECONDS_
- Run slideshow mode, pausing specified seconds between images.
- --output-device _DEVICE_
- Force output device: fb (framebuffer), sdl, gtk, aa (aalib), ca (libcaca), dumb.
- -c _COMMAND_
- Execute command after startup.
- -F _FILE_
- Execute commands from script file.
- --no-auto-scale
- Disable automatic scaling.
- -v, --verbose
- Be verbose: show status bar.
- -V, --version
- Display version and compile flags, then exit.
- -P, --text-reading
- Enable text reading mode. Scales images to screen width and aligns to top.
- -S, --sanity-check
- Perform a quick sanity check before starting.
- -h, --help
- Display help message.
FAQ
What is the fim command used for?
FIM (Fbi IMproved) is a versatile image viewer that works across different graphical environments. It automatically selects the most suitable display method: SDL under X, framebuffer on console, or ASCII art (via aalib/libcaca) when no graphical output is available. FIM supports common image formats natively (BMP, PCX) and through libraries (JPEG, PNG, GIF, TIFF, PPM, WEBP, AVIF). Additional formats are supported via external converters. The companion script fimgs can display PDF, PostScript, DVI, and compressed archives containing images. The viewer is keyboard-oriented with no graphical menus. It features an internal command language for scripting and customization, and can interact with standard input/output for pipeline integration.
How do I run a basic fim example?
Run `fim [image.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --autozoom do in fim?
Automatically pick a reasonable zoom factor for each image.