Last active
August 29, 2015 14:10
-
-
Save hadashiA/3feee4e2a9911b190322 to your computer and use it in GitHub Desktop.
Imagemagickの高速化 mprとmpc ref: http://qiita.com/hadashiA/items/bf10881943a41fee238d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hoge という字の画像を生成 | |
$ convert -size 200x200 -background transparent -fill black -gravity Center label:hoge png:- | \ | |
# それをbg.png と合成する | |
$ convert -composite - bg.png hoge.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ convert -size 200x200 -background transparent -fill black -gravity Center label:hoge -write mpr:hoge +delete mpr:hoge -composite bg.png hoge.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ convert bg.jpg bg.mpc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ convert -size 200x200 -background transparent -fill black -gravity Center label:hoge -write mpr:hoge +delete mpr:hoge -composite bg.mpc hoge.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment