Made Codacy happy. And added a badge! Yay!

This commit is contained in:
Casey 2022-02-03 23:58:53 +03:00
parent b28618b7ec
commit ea6f383b02
1 changed files with 14 additions and 15 deletions

View File

@ -1,10 +1,10 @@
# What is this # YAITAA - Yet Another Image To A(NSI) Art (converter).
YAITAA - Yet Another Image To A(NSI) Art (converter). [![Codacy Badge](https://app.codacy.com/project/badge/Grade/9fdbd9f8bc7843df9a6715b72b4da2fd)](https://www.codacy.com/gh/hatkidchan/yaitaa/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hatkidchan/yaitaa&utm_campaign=Badge_Grade)
Yes, very original. Old name is `asciify-reborn` for reasons stated bellow Yes, very original. Old name is `asciify-reborn` for reasons stated bellow
# Reasons for reimplementation ## Reasons for reimplementation
Everything is already described in Everything is already described in
[hatkidchan/asciify](https://github.com/hatkidchan/asciify#readme), but just as [hatkidchan/asciify](https://github.com/hatkidchan/asciify#readme), but just as
@ -18,9 +18,8 @@ recap:
6. Git submodules. Yay. 6. Git submodules. Yay.
# Build instructions ## Build instructions
### 1. Make sure that you have C compiler and make
## 1. Make sure that you have C compiler and make
```sh ```sh
cc --version && make --version && echo 'ok' cc --version && make --version && echo 'ok'
@ -28,28 +27,28 @@ cc --version && make --version && echo 'ok'
Both of commands should succeed. Both of commands should succeed.
## 2. Clone repo: ### 2. Clone repo
```sh ```sh
git clone --recursive https://github.com/hatkidchan/yaitaa git clone --recursive https://github.com/hatkidchan/yaitaa
cd yaitaa cd yaitaa
``` ```
## 2. Build it ### 2. Build it
```sh ```sh
make make
``` ```
## 3. Run it ### 3. Run it
```sh ```sh
./yaitaa -M braille -S 256 -W 80 -H 24 ~/images/kitty.png ./yaitaa -M braille -S 256 -W 80 -H 24 ~/images/kitty.png
``` ```
## Build end notes ### Build end notes
### 1. It is preferred to use `clang` as your compiler #### 1. It is preferred to use `clang` as your compiler
Main reason being that it is more strict, so any issues I've missed may be Main reason being that it is more strict, so any issues I've missed may be
reported on that step. Feel free to send them to me! reported on that step. Feel free to send them to me!
@ -58,13 +57,13 @@ reported on that step. Feel free to send them to me!
CC=clang make CC=clang make
``` ```
### 2. Strip binary to reduce size (saves ~100KiB) #### 2. Strip binary to reduce size (saves ~100KiB)
```sh ```sh
strip ./yaitaa strip ./yaitaa
``` ```
### 3. Installation #### 3. Installation
It's not really designed to be installed system-wide, but if you *really* want It's not really designed to be installed system-wide, but if you *really* want
to do so, do the following to do so, do the following
@ -81,9 +80,9 @@ Alternatively, you can install it to your local directory, if it's in your
cp ./yaitaa ~/.local/bin/yaitaa cp ./yaitaa ~/.local/bin/yaitaa
``` ```
# License ## License
``` ```text
yaitaa - Yet Another Image To A(NSI) Art (converter) yaitaa - Yet Another Image To A(NSI) Art (converter)
Copyright (C) 2022 hatkidchan <hatkidchan at gmail dot com> Copyright (C) 2022 hatkidchan <hatkidchan at gmail dot com>