https://github.com/chazeon/llsif-cardgenerator-node
A LoveLive! School Idol Festival card image generator written in NodeJS.
https://github.com/chazeon/llsif-cardgenerator-node
lovelive nodejs sharp
Last synced: 9 months ago
JSON representation
A LoveLive! School Idol Festival card image generator written in NodeJS.
- Host: GitHub
- URL: https://github.com/chazeon/llsif-cardgenerator-node
- Owner: chazeon
- Created: 2017-03-19T09:32:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T05:41:37.000Z (about 8 years ago)
- Last Synced: 2025-03-30T13:51:14.811Z (10 months ago)
- Topics: lovelive, nodejs, sharp
- Language: JavaScript
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLSIF-CardGenerator
A LoveLive! School Idol Festival card image generator written in NodeJS.
## How to use
### Getting Started
To get started, you should:
* Get a current version (>4.0) LoveLive! School Idol Festival install package, and have `AppAssets.zip` unzipped, deciphered, texture banks unpacked into a folder, we call internal here.
* Getting all updating packages, unzipped, deciphered, texture banks unpacked into a folder, we call it external here.
* Get a folder you wish to generate your card images to, we called generated here.
* Copy and modify `config/config.sample.json` to `config/config.json`, point three paths to the directories you set above.
### Generate Card Images
#### Generate Cards
You could generate cards by running
```bash
$ node src/scripts/gen_card
```
#### Generate UR Pairs
You could generate UR pairs by running
```bash
$ node src/scripts/gen_pair
```
#### Generate Icons
You could generate cards by running
```bash
$ node src/scripts/gen_icon
```
### Use as a Server Backend
With code fully written in NodeJS, it is posible you could intergrate it into a NodeJS server, and generate card images dynamically.
You could refers to scripts `src/scripts` folder to see how to get `Buffer`s of images each type, and stream them to a server response.
### Switch to a Image Processing Backend other than Sharp
You should be able to switch to a image processing backend other than sharp, but refer to `src/sharp` first. All you need to do is to handle layer merging use your preferred backend.
## Dependencies
This project depends on:
* **bluebird** - for promise-like calls
* **sharp** - for image processing
* **lodash**
* **sequelize** - for reading sqlite databases