Giter Site home page Giter Site logo

fossabot / 5000choyen-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neko7sora-dev/5000choyen-api

0.0 0.0 0.0 33.07 MB

💴 "I want 5000 trillion yen!" can be generated on the server side.

Home Page: https://5000choyen.api.dev.neko7sora.site

License: GNU General Public License v3.0

Dockerfile 2.44% JavaScript 97.56%

5000choyen-api's Introduction

5000choyen-api

5000 兆円欲しい!をサーバーサイドで生成できるようにしたものです。

how to use

https://gsapi.cyberrex.jp/image?top=上部文字列&bottom=下部文字列

a FOSSA Status

spec

画像形式: PNG/WebP (アルファチャンネルあり、背景透明)、JPEG

最大横幅: 3840px

parameters

name value description
top - 上部文字列
bottom - 下部文字列
type png/jpg/webp PNG/JPEG/WebP の切り替え
q - 画質(1 ~ 100)
hoshii true/false 下部文字列を「欲しい!」に固定する
noalpha true/false 背景色を白にする
rainbow true/false 虹色にする ※1
single true/false 上部・下部どちらかをレンダリング ※2

※1:hoshii がtrueの場合、下部は虹色になりません。

※2:top と bottom を両方指定するとエラーになります。hoshii は無視されます。

server configuration

サーバーの設定を変えることができます。 ホスト名と SSL の有無を設定できます。なおこれは表示に関わる設定で動作自体に影響はありません。

server_config.json をサーバープログラムがあるディレクトリに配置するか、環境変数 GSAPI_HOSTNAME GSAPI_SSL で設定可能です。(Heroku などでは環境変数で設定するほうが簡単です)

JSON の例は以下のとおりです。

{
  "hostname": "gsapi.cyberrex.jp",
  "ssl": true
}

環境変数の例は以下のとおりです。

GSAPI_HOSTNAME="gsapi.cyberrex.jp"
GSAPI_SSL="1" # 1=true, 0=false

反映優先順は 設定ファイル > 環境変数 です。

caution

文字列が短いと横幅が自動で調整されて短くなります。

どんなに長くても 3840px までしか横幅は伸びません。

過剰なアクセスはお控えください。

thanks

このプログラムは、yurafuca 様が作られたものをベースに Node.js 向けに改良を加えつつ、サーバーサイドに移植したものです。 原作リポジトリはこちら

License

FOSSA Status

5000choyen-api's People

Contributors

cyberrex0 avatar fossabot avatar neko7sora avatar renovate[bot] avatar sevenc-nanashi avatar souhait0614 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.