Difference between revisions of "Framebuffer image viewer"
From xPL
(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 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'