Framebuffer image viewer
From xPL
Framebuffer resolution
Set the framebuffer resoultion by modifying /boot/config.txt
:
# uncomment to force a specific HDMI mode (this will force VGA) hdmi_group=2 hdmi_mode=87 # See /boot/overlays/README for all available options hdmi_cvt 3840 2160 15 max_framebuffer_width=3840 max_framebuffer_height=2160
Reboot and check the resolution:
fbset
Install image viewer
The Framebuffer Image Viewer (fbi) allows to display images on the screen even with a minimal console Linux installation, without any [Desktop environment].
Install it:
su apt install -y fbi
Test it:
find /usr/share/ -iname *.jpg 2> /dev/null fbi -d /dev/fb0 -T 1 -a /usr/share/doc/libfreetype6/image/BlendingExamples-thumbnail.jpg
Give the control
user access to the device:
usermod -a -G tty control chmod 660 /dev/tty1
Install image editor
ImageMagick provides a set of tools to edit bitmap images and Image::Magick a Perl interface to it.
Install it:
su apt install imagemagick apt install libimage-magick-perl
Test it:
find /usr/share/ -iname *.jpg 2> /dev/null identify /usr/share/pixmaps/debian-logo.png RESOLUTION='3840x2160' convert -resize $RESOLUTION -background black -gravity center -extent $RESOLUTION /usr/share/pixmaps/debian-logo.png bgra:/dev/fb0 perl -MImage::Magick -le 'print Image::Magick->QuantumDepth'