ichinaski / pxl Goto Github PK
View Code? Open in Web Editor NEWDisplay images in the terminal
License: BSD 3-Clause "New" or "Revised" License
Display images in the terminal
License: BSD 3-Clause "New" or "Revised" License
... and leave image after exiting program.
Hey!
Sorry, for using issues to ask, but I'm a total newbie in all that github stuff.
The thing is that I used code of your pxl and I left bsd license text and your name as required to be used as gocui.Manager, rather than using underlying termbox-go directly.
So the question should I do anything else, except your name being present in the license text?
And I sorry again for probably foolish question and a definitely improper usage of issue filing.
Works fantastically in Terminal, but displays a black screen in iTerm2.
I have GO installed and running and configured in the PATH as well.
I run this: go get github.com/ichinaski/pxl
It gives no error, by which I assume it's gotten installed fine without any errors(?).
Then I run this: pxl path/to/image
And I get this error:
Command "pxl" not found, did you mean...
$ go get github.com/ichinaski/pxl
# github.com/ichinaski/pxl
..\github.com\ichinaski\pxl\image.go:26: undefined: syscall.SYS_IOCTL
..\github.com\ichinaski\pxl\image.go:26: undefined: syscall.TIOCGWINSZ
..\github.com\ichinaski\pxl\image.go:26: not enough arguments in call to syscall.Syscall6
Put it as a library please, I'd really like to use it in my project.
I got a problem with installing/setting it up on Bash on Ubuntu on Windows. It installs fine, but I get an error when running:
procyon@Raccoonbook:~$ pxl /mnt/c/Users/Procyon/Pictures/chattobuysupport.png
panic: invalid argument
goroutine 1 [running]:
panic(0x57f480, 0xc82000e4f0)
/usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
main.main()
/home/procyon/work/src/github.com/mattn/pxl/main.go:62 +0x2eb
procyon@Raccoonbook:~$
It won't run.
........\ichinaski\pxl\image.go:26:34: not enough arguments in call to syscall.Syscall6
........\ichinaski\pxl\image.go:26:35: undefined: syscall.SYS_IOCTL
........\ichinaski\pxl\image.go:26:87: undefined: syscall.TIOCGWINSZ
Hi,
I'd like to import this github.com/ichinaski/pxl into my Go project.
Mind changing the structure of this project, so people can import it? We'd basically need to separate func main()
from the pxl
implementation:
Thanks
just like cacaview
zoom in/out img, jump to next/prev img, etc
Please add support for using the Q key to quit (rather than just ESC).
My environment:
XQuartz 2.8.5(X11) with 256 colors enabled
go1.19.5 darwin/amd64
To install pxl, I used
go install github.com/ichinaski/pxl@latest
pxl was also added to my path, so I'm able to use
pxl example.png
but every image, including the Examples from the project page, is not showing properly in the terminal.
At first I saw scrolling color lines/bars rolling upwards as if it's doing a vertical scan, then a few seconds later, what was shown in the terminal is only a small tiny bit of the original image (maybe tens of pixels I suppose )
i.g. the gh.png from the project page is showing just a white screen in my xterm.
Is it possible to add .ico format to pxl? Currently, I just get an "unknown format" error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.