jhchen / ansize Goto Github PK
View Code? Open in Web Editor NEWConvert images to binary ANSI art
License: MIT License
Convert images to binary ANSI art
License: MIT License
Hello,
I'm not able to properly install ansize.
The command should be "go get github.com/nfnt/ansize", but this results in:
fatal: https://github.com/nfnt/ansize/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
package github.com/nfnt/ansize: exit status 128
And your example for Mac installation (via Homebrew) states that the package is "resize".
Did this happen due to a repository (name) switch or anything like that?
Edit: Okay, I had a closer look in the source code. Resize is a dependency and "go get" works fine for that.
So, first you should add the installation instruction "go get github.com/nfnt/resize" and then fix the error for "go get'ting" your repo ;)
go build ansize.go
stat ansize.go: no such file or directory
Hi @jhchen
Thanks for the tool, it's fully accorded with my need, I appreciated that.
I found the output got seriously squeezed with images of relatively large height to width ratio.
Here's what makes it so:
Line 25 in 2bd5c17
Line 44 in 2bd5c17
The image height during the resizing is hardcoded to width * 0.46
, but why 0.46
?
How about keeping the original proportion by passing 0
as height to Resize
?
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.