Code Monkey home page Code Monkey logo

shadow's Introduction

shadow

これは影(透明度・大きさ・輪郭)の調整をするコマンドです。

(This is a command to control the shadow(Transparency, Size, Outline).)

OSX Screenshot Shadow is too big!
shadow sample.png Default shadow
shadow -b4 sample.png Nano shadow
shadow -b2 sample.png Line shadow
shadow -b0 -a0 sample.png None shadow

利用環境

  • OSX 10.6以上

インストール

  • command/shadow を /usr/local/bin/shadow へ、インストールすることをお勧めします。
  • (Please move to /usr/local/bin/shadow

使い方

Usage: shadow [-a ALPAH_VALUE] [-b BLUR_RADIUS] [-s SUFFIX] [-z PXorRATE] [-owh] [FILE ...]
  -a ALPAH_VALUE    影の不透明度 (0 <= ALPAH_VALUE <= 1, デフォルト: 0.5).
  -b BLUR_RADIUS    影のぼけ具合 (0 <= BLUR_RADIUS, デフォルト: 8.0).
  -s 'SUFFIX'       出力画像のファイル名に付加する文字列指定する.
  -z PXorRATE       出力画像のサイズを指定する (0 <= PXorRATE, Default: 1.0).
  -o                輪郭なし.
  -w                同じ画像ファイルに上書きする.
  -h                このヘルプを表示する.

Example:
  shadow test.png             ->  Default shadow(= shadow -a0.5 -b8 test.png)
  shadow -b4 test.png         ->  Nano shadow
  shadow -b2 test.png         ->  Line shadow
  shadow -b0 -a0 test.png     ->  None shadow
  shadow -b56 -a0.8 test.png  ->  OS X shadow
  shadow test.png -s '-nano'  ->  出力画像のファイル名が'test-nano.png'になる.
  shadow test.png -w          ->  元画像の'test.png'に上書きする.
  shadow -z 500 test.png      ->  出力画像の最大サイズを500pxに制限する.
  shadow -z 0.7 test.png      ->  出力画像のサイズを0.7倍する.
Usage: shadow [-a ALPAH_VALUE] [-b BLUR_RADIUS] [-s SUFFIX] [-z PXorRATE] [-owh] [FILE ...]
  -a ALPAH_VALUE    Shadow opacity (0 <= ALPAH_VALUE <= 1, Default: 0.5).
  -b BLUR_RADIUS    Shadow blur (0 <= BLUR_RADIUS, Default: 8.0).
  -s 'SUFFIX'       Add suffix.
  -z PXorRATE       Zoom output size (0 <= PXorRATE, Default: 1.0).
  -o                Without outline.
  -w                Rewrite original file.
  -h                Help.

Example:
  shadow test.png             ->  Default shadow(= shadow -a0.5 -b8 test.png)
  shadow -b4 test.png         ->  Nano shadow
  shadow -b2 test.png         ->  Line shadow
  shadow -b0 -a0 test.png     ->  None shadow
  shadow -b56 -a0.8 test.png  ->  OS X shadow
  shadow test.png -s '-nano'  ->  Output file name is 'test-nano.png'.
  shadow test.png -w          ->  Original 'test.png' is over written.
  shadow -z 500 test.png      ->  Limit maximum size to 500px.
  shadow -z 0.7 test.png      ->  Zoom size to 0.7 times.

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.