convert -background "#ffffff" -gravity north -splice 0x10
convert -background "#ffffff" -gravity south -splice 0x10
convert -background "#ffffff" -gravity east -splice 10x0
convert -background "#ffffff" -gravity west -splice 10x0二方向以上への余白を一度に付け足すことはサポートされてないので2回 convert する.
ファイル名 "-" がよろしく stdin または stdout になるのでパイプで繋げば良い:
cat hoge.jpg |
convert -background "#ffffff" -gravity west -splice 800x0 "-" "-" |
convert -background "#ffffff" -gravity north -splice 0x300 "-" out.jpg漫画のスキャン画像や写真は、本来はグレイスケール画像であるが、照明等の影響を受け見た目が異なる. 元のグレイスケールを復元する試み.
-type GrayScale
-monochrome があるが、これは白黒への二値化-contrast
-modulate <int>
オリジナル:
convert -type GrayScale -contrast -contrast
convert -type GrayScale -contrast -contrast -contrast -contrast
オプションは先頭から順に実行される?
オリジナル:
convert -modulate 200 -type GrayScale -contrast -contrast -contrast