You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`ConsoleVision` is a library that will take a bitmap and convert it to a ANSI
8
+
6
9
With this tool, you'll be able to display images without leaving your terminal. This can be useful when you are just sshing into another machine and don't have GUI access.
7
10
8
11
To make this more convenient, there is an option to run the tool as a server instead, so the only thing that you need installed is `curl`
9
12
10
13
# What's included?
11
14
12
-
There are 2 deliverables from this repo
13
-
-**lib** - a library that will take a bitmap and convert it to a ANSI
14
-
-**app** - a wrapper that makes the library available via CLI and as a server.
15
+
<details>
16
+
<summary>As a Library</summary>
15
17
16
-
## As a library
17
18
18
19
The library jar file includes an implementation of [ANSI](https://mudhalla.net/tintin/info/ansicolor/) for the JVM. It has some similar content to [Jansi](http://fusesource.github.io/jansi/) (which I was unaware of at the time), but it includes extensions that make it more useful for image processing.
19
20
20
-
## As an app
21
+
</details>
22
+
23
+
<details>
24
+
<summary>As an App</summary>
21
25
22
26
The app supports a variety of command line flags which will allow for:
23
27
- colorspace reduction
@@ -31,7 +35,12 @@ The app supports a variety of command line flags which will allow for:
31
35
|-|-|-|-|
32
36
|<imgwidth="705"alt="Screen Shot 2022-02-05 at 8 51 15 AM"src="https://user-images.githubusercontent.com/10187351/152647110-105c8015-f7a7-4a98-aaff-6947722651b6.png">|<imgwidth="700"alt="Screen Shot 2022-02-05 at 8 50 53 AM"src="https://user-images.githubusercontent.com/10187351/152647111-787eeef5-dd59-4ef8-8e0d-47678f44f953.png">|<imgwidth="719"alt="Screen Shot 2022-02-05 at 9 03 37 AM"src="https://user-images.githubusercontent.com/10187351/152647252-c9035db3-a684-4818-8455-f917dade6700.png">|<imgwidth="717"alt="Screen Shot 2022-02-05 at 9 02 59 AM"src="https://user-images.githubusercontent.com/10187351/152647253-1c6b5be0-bb7f-4b58-a98e-ba10c253106a.png">|
33
37
34
-
It also has the ability to be run as a server, with the `-s` flag. This will allow you to use a limited feature set of the command line tool, in a more convenient way.
38
+
</details>
39
+
40
+
<details>
41
+
<summary>As a Server</summary>
42
+
43
+
Running the tool as a server will allow you to use a limited feature set of the command line tool, in a more convenient way.
35
44
- To upload a photo, POST to the `/upload` endpoint. You'll receive an image hash.
36
45
- To retrieve a photo, GET to the `/im/{id}` endpoint, using an image hash.
37
46
- To retrieve the last photo, GET to the `/last` endpoint
@@ -62,7 +71,10 @@ I have a server where this is deployed as well, if you just want to test it out.
Initial functionality that allowed for playing videos has been taken out. The video player that was being used, [humble](https://github.com/artclarke/humble-video/blob/master/humble-video-demos/src/main/java/io/humble/video/demos/DecodeAndPlayVideo.java), was not able to be packaged into a shadow jar.
0 commit comments