Git Product home page Git Product logo

imgurc's Introduction

imgurc.exe

コマンドラインから「imgur」等へ画像・ファイルの共有を行うCUIツール

author: @akatubame / date: 2015/03/15 / version: 1.0 / 使用言語: AutoHotkey

![screenshot] [screenshot]: https://github.com/akatubame/imgurc.exe/blob/master/Screenshot.jpg "スクリーンショット"

##■本ソフトの説明

imgurなどの画像共有サービスへのアップロードをコマンドラインから扱うツールです。 Windows7で動作確認済み。

ブラウザへ画像をドラッグ&ドロップする手間を軽減する目的で制作。
また、共有URLを標準出力で得ることができるのでプログラムの途中処理に組み込むこともできます。

主な機能は以下のとおり。

  • 画像ファイルを imgur.com へアップロード
  • 任意のファイルを transfer.sh へアップロード
  • アップロードされたファイルのURLの取得(標準出力STDOUTへ表示)

##■使い方

コマンドプロンプトを起動して「imgurc.exe」にアクセスします。
あとはimgurc.exeに画像のパスを渡して起動するだけでアップロード -> 共有URL取得までの一連の動作が完了します。

本ツールでアップロードしたファイルのURL(共有URL)はプロンプトに表示されるので、
[範囲選択] -> [コピー]でURLを取得することができます。

共有サービスの選択、画像ファイルの選択などはコマンドラインオプションにて行えます。

コマンドラインオプション

imgurc.exe [ -i or -t ] ["FilePath"] ["ChangedFileName"] [|more]

  • [ -i or -t ]
    • 共有サービスの選択。"-i" ならimgur.comを、"-t" ならtranser.shを使用します。
  • ["FilePath"]
    • アップロードする画像orファイルのパスを指定します。(例:"C:\sample.jpg")
  • ["ChangedFileName"]
    • transfer.sh専用のオプション。省略可。
    • URLに含まれるファイル名を変更できます。標準ならファイル名がそのままURLになります。
  • [|more]
    • 標準出力をプロンプトに表示。通常は付けてご使用下さい。パイプライン処理などを行う場合は不要。
    • このオプションはコマンドの最後に記述する必要があります。

コマンドライン使用例:

imgurで画像を共有する
C:\ > imgurc.exe "-i" "C:\sample.jpg" |more

transfer.shでテキストファイルを共有する
C:\ > imgurc.exe "-t" "C:\sample.txt" |more

##■終わりに

imgurの画像共有APIには利用アプリケーション個別のIDが必要のため、
標準では imgurc.exe の名称で登録したClientIDを使用しています。
変更する場合は http://api.imgur.com/oauth2/addclient から適宜入手してください(※要ログイン)。

その他、質問や機能の追加要望、バグ報告等は以下へどうぞ。

Author: akatubame  
Email: [email protected]

imgurc's People

Watchers

James Cloos avatar akatubame 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.