Comments (5)
interesting. Looke like less
can't deal with the grid layout as the output to the terminal writing one image at a time, then jumping back up and to the right and then doing the next image. The -R
option sanitizes the cursor jumps away.
The default behavior is useful for regular terminal output in which we want images to show as soon as they are loaded, but maybe it would make sense in the cases of output not being a terminal to render each row first then output.
Note, for anyone reading this: to make less
work at all with timg, you'd need the -R
option to output raw escape sequences. (it sanitizes to not include cursor jump commands, so grid will shown one after another):
timg --grid=3 *.jpg | less -R
The lowercase -r
option also outputs cursor jump commands and would actually allow to show the grid output, but then scrolling up will break
timg --grid=3 *.jpg | less -r
from timg.
How about implementing hyperlink support, like how coreutils ls does? That way it would be possible to use the already existing grid functionality, and each file would be clickeable. The only requirement would be to use a terminal that supports hyperlinks
from timg.
The closest to browsing images is so far the recently added grid mode. With --grid=3
you can for instance arrange images more compactly on the screen. If you add --title
you can see the associated filenames.
But it is not interactive. That sounds like something useful: selecting an image and showing an enlarged version in a separate area.
from timg.
timg --grid=3 *.jpg|less
is almost there, but the scrolling breaks
from timg.
In kitty, less -R
only displays text while less -r
displays the images but allows no scrollback :/
from timg.
Related Issues (20)
- carbonyl love?
- I can't compile on termux HOT 3
- Magick Segmentation fault with auto-crop HOT 2
- Respect SVG transparency HOT 19
- Compile error with ffmpeg 5 HOT 5
- Maybe some cmake install instructions? HOT 3
- Add support for `-ps` `s = sextant blocks`
- Implement timg into links or w3m HOT 2
- How to install timg in Centos? HOT 2
- Three dependencies for Debian not present in instructions HOT 1
- Stucks on a "iOS optimized PNG" file HOT 6
- How to disable this error(warning)? HOT 4
- Option to show all images at once with `--grid` and `-w` HOT 3
- On beta versions of termux such bug HOT 4
- Detected memory leaks 16 byte(s) leaked in 2 allocation(s) HOT 3
- Black screen on tmux HOT 5
- Grid parameter ignored for pdfs HOT 6
- tmux show picture is blur HOT 18
- Feature request: support sixel format HOT 2
- Displaying long images starting from the top instead of the bottom HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timg.