Hatena::ブログ(Diary)

No Programming, No Life (in English) このページをアンテナに追加 RSSフィード Twitter

2011-05-26

I made jar that adding Groovy's logo on your icon

(◕ ‿‿ ◕)Groovee
Please contract with me, and will be a Groovyist!!
This is a groovy badge, generated by contract in exchange.


f:id:fumokmm:20110526234249p:image

(This is parody of Japanese Anime ”Madoka Magica”)

How to use

First, download this jar.

Using by GUI

  • Double click jar and will invoked.
  • Adjust layout badge position and reduction ratio.
  • Drop your icon to window.*1

f:id:fumokmm:20110710101553p:image

Using by shell

$ java -jar groovy-logo-adder.jar <your_icon_file_name> <image_creation_options...>

image creation options allowd followings.

Positions

optiondescription
topLeftPut logo at Top Left
topRightPut logo at Top Right
bottomLeftPut logo at Bottom Left
bottomRightPut logo at Bottom Right (default)
centerPut logo at center
Reduction ratio
optiondescription
xx%Set reduction ratio (default: 70%)

Specifying position, ratio, and icon's name list allowed random order.
However, position and ratio is using top of one when you specify plural.*2

Example

Put Groovy's logo that reducted 50% at the bottom left of "icon1.jpg" and "icon2.jpg".

$ java -jar groovy-logo-adder.jar icon1.jpg icon2.jpg bottomLeft 50%

Source is on github

fumokmm/groovy-logo-adder ? GitHub
Please visit! if you are interested in.

History

  • 2011-07-10 Putting logo, reduction ratio choice is added. (v0.11)
  • 2011-05-28 Bug fix. (v0.10)
  • 2011-05-27 Adding GUI.

Refer to

Drag & Drop sample for SwingBuilder. for http://d.hatena.ne.jp/fumokmm/20110526/1306421368 — Gist

*1:specify plural is OK.

*2:if you omit, default is specified.