Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to have some text printed next to the image #118

Open
Pasquale-Perilli opened this issue Jan 8, 2024 · 1 comment
Open

Comments

@Pasquale-Perilli
Copy link

Some pictures that we print through viu would be suited to have text to the right.

Say for example, I have this picture being printed by Viu:

viu-pr

If I wanted to have text next to it, I think I would issue a command similar to this:

viu --width 10 --height 10 $HOME/Pictures/christmas-balls.png --text "Merry Christmas and happy new year"

Which would result in some text to the right of the image:

viu-pr-2

I sincerely hope this is doable. It would be amazing!

@yunruse
Copy link

yunruse commented Sep 11, 2024

ss 2024-09-11 at 17 21 01

If it helps any, I had the same issue and developed hcat for this exact purpose! It's public domain; just grab it and throw it somewhere in your PATH. It doesn't do vertical alignment, but I'm sure that could be patched in if you think it helps any.

(It works nicely with figlet and lolcat in my terminal setup :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants