Difference between revisions of "Framebuffer image viewer"

From xPL
Jump to: navigation, search
(Created page with "= Framebuffer resolution = Set the framebuffer resoultion by modifying <code>/boot/config.txt</code>: # uncomment to force a specific HDMI mode (this will force VGA) hdmi_g...")
 
(Install image viewer)
 
Line 13: Line 13:
 
Reboot and check the resolution:
 
Reboot and check the resolution:
 
  fbset
 
  fbset
 
= Install image viewer =
 
 
The [https://www.kraxel.org/blog/linux/fbida/ Framebuffer Image Viewer] (fbi) allows to display images on the screen
 
even with a minimal console Linux installation,
 
without any [[https://en.wikipedia.org/wiki/Desktop_environment 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 <code>control</code> user access to the device:
 
usermod -a -G tty control
 
chmod 660 /dev/tty1
 
  
 
= Install image editor =
 
= Install image editor =

Latest revision as of 11:08, 19 March 2019

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 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'