PhotoJoiner
Khi dịch ngược các app Android hay các file ảnh dùng cho CSS, nhiều ảnh nhỏ hay được ghép thành 1 ảnh to. Khi dùng thì crop theo vị trí. Như vậy tiết kiệm nhiều thứ. Tool online lẫn Desktop mình nghĩ có nhiều để làm việc này, đơn cử như PS, Gimp, online có photojoiner.net ...
montage 2015-04-08*.png -tile 3x3 -geometry +0+0 out.pngGhep anh theo 3 hang x 3 cot.
Thực tế muốn sort ảnh theo size width x height trước khi join.
Có thể dùng bash sort rồi >> ra file name thứ tự theo size WxH, rồi montage.
Create text image
Lỗi font nè:
convert -font /usr/share/fonts/truetype/fonts-japanese-gothic.ttf -pointsize 48 -size 400 caption:ひゃ text.pngTuỳ ngôn ngữ mà chọn font nha.
Other colors:
i. green:
convert -font /usr/share/fonts/truetype/fonts-japanese-gothic.ttf -background white -size 60x60 -fill "#aabb00" -pointsize 36 -gravity center caption:ひょ hira_ho.pngii. orange
convert -font /usr/share/fonts/truetype/fonts-japanese-gothic.ttf -background grey -size 60x60 -fill orange -pointsize 36 -gravity center caption:ひょ hira_hora_orange.png
-gravity:
convert temp.jpg -gravity North -pointsize 30 -annotate +0+100 'Love you mom' temp1.jpg
http://www.imagemagick.org/script/command-line-options.php?#gravityhttp://www.imagemagick.org/Usage/text/
Create a sentence image:
convert -font /usr/share/fonts/truetype/fonts-japanese-gothic.ttf -background grey -size 420x100 -fill "#aabb00" -pointsize 36 -gravity North caption:ワイルドサイドの友達に hira_wairudo_grey2.png
Annotate for image:
convert hira_wairudo_grey2.png -font /usr/share/fonts/truetype/fonts-japanese-gothic.ttf -fill "#aabb00" -pointsize 24 -gravity South -annotate +0-24 'Wairudosaido no tomodachi ni' hira_wairudo_grey2.png
The bash is awesome and fast, but when I need more logic and text processing it become hard for me to done job only with bash. So I make some PHP script here:
https://github.com/dungnv53/Hittie/blob/master/Code/php/sakura.php
PHP automate generate text button image
In above script, I create a list of image button with japanese character in center and annotation in romanji in the south (the vowel store in an array like 'ba' => 'が'). Here some result:
I know some site have this tool (u google button image generator), and some of this has API. But I still likely to solve it in my way.
I make a simple game for learn japanese alphabet Hiragana and katakana. It use button image generated by above script. You can install here:
https://play.google.com/store/apps/details?id=com.littlewing.genjitakya.app
convert input_file -background transparent -extent '18x18' output_file
ReplyDelete