やるじゃん、imagemagick
デジカメを買ってからというもの、imagemagick に付属している convert コマンドが大活躍している。画像のサイズ変更とフォーマット変更を一発で行えるのがいい。
$ convert -resize 640x480 before.jpg after.png
アイコンも作れちゃったりする。
$ convert -resize 120x120 before.jpg after.xpm
他にもいろいろコマンドがある。identify は画像版 nkf -g のような感じ。
$ dpkg -L imagemagick | while read f; do if [ -x $f -a -f $f ]; then echo $f; fi; done /usr/bin/animate /usr/bin/compare /usr/bin/composite /usr/bin/conjure /usr/bin/convert /usr/bin/display /usr/bin/identify /usr/bin/import /usr/bin/mogrify /usr/bin/montage
今まで使わなかったけど、imagemagick ってかなりよくできた画像処理パッケージであることを発見。それにしても、新しいこと(デジカメ)を覚えると、連鎖して世界が広がるなあ。うむうむ。