SliTaz SliTaz Forum

You are not logged in.

#1 2013-03-05 22:51:29

cpcnw
Member
Registered: 2013-01-28
Posts: 41

cli image viewer

hi - is there a way to view a .png file or .jpg file in the console?

I have installed fbshot which creates a .png from the framebuffer and want to view back those .png files in the same framebuffer?

can convert to jpg with ;

png2pnm img.png | cjpeg > img.jpg

but how to view?

Offline

#2 2013-03-06 00:12:00

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: cli image viewer

fbi displays png,tiff,jpg in kernel framebuffer.

[c]# tazpkg -gi fbida[/c]

To test system I edit grub menu kernel line with vga=791 screen=text to activate frame buffer and remove slim from /etc/rcS.conf RUN_DAEMONS= to boot to console.

After login cd to picture files:

[c]fbi *png[/c] <= displays every png in cwd,advance with space bar,pgup,pgdn.

Using the -t <# seconds> switch for slide show.

Add slim back to /etc/rcS.conf RUN_DAEMONS= after hald if you want to auto-start X on next boot.

Offline

#3 2013-03-06 09:08:14

cpcnw
Member
Registered: 2013-01-28
Posts: 41

Re: cli image viewer

Had to load freetype and fontconfig but yep, the above worked smile

I had actually tried to make install fbida from src but ran into too many probs!

Thanks a mill - please mark SOLVED!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.022 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]