GithubHelp home page GithubHelp logo

dessin-scale's Introduction

dessin-scale

Features

絵の練習のためのデッサンスケールのような画像を作るためのスクリプトです。

指定された画像の上に縦横に等分した赤い枠線を書いた画像を作成します。

Requirement

  • Pillow 8.2.0

Installation

pip install git+https://github.com/emittam/dessin-scale

Usage

基本的な使い方

dessin-scale -g [縦横のグリッド数] [画像のPath]

[指定された画像の名前]_grid.[拡張子](例 a_grid.png)という名前の画像が、指定された画像と同じディレクトリに作成されます。

-g を指定しない場合のデフォルト値は3です。

画像の拡縮

dessin-scale -g [縦横のグリッド数] -s [倍率(1より大きければ拡大、小さければ縮小)] [画像のPath]

-s [倍率] (例 -s 1.5) と指定することで元の画像を拡大、縮小して枠線を引いた画像を出力します。

枠線のみの画像の出力

dessin-scale -t -g [縦横のグリッド数] [画像のPath]

イラストソフトのレイヤーとして読み込むための画像を作成します。

-t と指定することで元の画像と同じサイズの透明画像の上に枠線を引いた画像を作成します。

-s と組み合わせるとサイズを変化させることができます。

出力先の指定

dessin-scale -g [縦横のグリッド数] -o [出力先のPath] [画像のPath]

Author

License

"dessin-scale" is under MIT license.

dessin-scale's People

Contributors

emittam avatar

Watchers

 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.