昔、Pencil-sketch.scm というスクリプトがあって、あちらこちらで紹介されているのですが、現在配布サイトが消滅していました。自分が紹介したのは、2006年11月18日 でしたが、インターネット上の情報としては、2012 年ごろまではダウンロードできたようです。
残念ながら、Pencil-sketch.scm は見つからないので、他のスクリプトを探して二つ見つけました。 ※ コメントをいただいて、http://archive.org/web/ にある事を教えていただきました。( ページの最後にスクリプトの結果があります ) ▼ 元画像quick-sketch.scm Quick sketch 白黒の濃度を 0 から 200 まで変更する事ができますが、ぼかしたオリジナル画像を、元の画像の上に覆い焼きしているだけなので、鉛筆画像というより、白黒効果プラスアルファといった感じです。 ▼ 30
▼ 180
FU_sketch_pencil-sketch-BW.scm Script-Fu -> Pencil Sketch BW ※ 本体だけでは無く、パターンのダウンロードが必要なので注意して下さい オプションとして、以下のチェックから最初から ON になっていますが、これだと合成されてしまうので、チェックを外して実行します
▼ 合成されたもの
背景部分の薄いところも雰囲気を出す為にそれ用のパターンレイヤーが合成されています。 ▼ パーツの一枚(レイヤー)
※ パターンを非表示にすると、こんな感じになります。 Pencil-sketch.scm(みつかりました)
あきらかに、前の二つより複雑な処理を行っている気がします。GIMP のスクリプトを読むのは結構気合がいるので読んでませんが、plugin も多くつかわれていたりと、特に plug-in-gauss-iir がキモのようでした(FU_sketch_pencil-sketch-BW.scm でも使われています)。 ソースコードの先頭にライセンス記述があるので貼っておきます
; The GIMP -- an image manipulation program ; Copyright (C) 1995 Spencer Kimball and Peter Mattis ; --------------------------------------------------------------------- ; The GIMP script-fu Pencil Sketch for GIMP1.2 - 2.6 ; Copyright (C) 2004 Tamagoro <tamagoro_1@yahoo.co.jp> ; --------------------------------------------------------------------- ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ; --------------------------------------------------------------------- (define (script-fu-pencil-sketch image drawable) (let* ( (W (car (gimp-image-width image))) (H (car (gimp-image-height image))) (type (car (gimp-drawable-type drawable))) (select (car (gimp-selection-is-empty image))) (select-channel) (backup-layer) (copy-layer) (base-layer) ) (gimp-image-undo-group-start image) (if (equal? select FALSE) (begin (set! select-channel (car (gimp-selection-save image))) (set! backup-layer (car (gimp-layer-copy drawable 1))))) (if (< type 2) (gimp-desaturate drawable)) (plug-in-normalize 1 image drawable) (plug-in-noisify 1 image drawable FALSE 0.01 0.01 0.01 0.00) (plug-in-sharpen 1 image drawable 70) (plug-in-noisify 1 image drawable FALSE 0.01 0.01 0.01 0.00) (set! copy-layer (car (gimp-layer-copy drawable 1))) (gimp-image-add-layer image copy-layer -1) (gimp-layer-set-mode copy-layer DIVIDE) (plug-in-gauss-iir 1 image copy-layer (+ 1 (/ (+ W H) 500)) TRUE TRUE) (set! base-layer (car (gimp-image-merge-down image copy-layer 2))) (set! copy-layer (car (gimp-layer-copy base-layer 1))) (gimp-image-add-layer image copy-layer -1) (gimp-brightness-contrast copy-layer 0 125) (gimp-invert copy-layer) (gimp-layer-set-mode copy-layer SCREEN) (gimp-layer-set-opacity copy-layer 60) (set! base-layer (car (gimp-image-merge-down image copy-layer 2))) (plug-in-normalize 1 image base-layer) (set! copy-layer (car (gimp-layer-copy base-layer 1))) (gimp-image-add-layer image copy-layer -1) (gimp-invert copy-layer) (gimp-layer-set-mode copy-layer OVERLAY) (gimp-layer-set-opacity copy-layer 50) (set! base-layer (car (gimp-image-merge-down image copy-layer 2))) (set! copy-layer (car (gimp-layer-copy base-layer 1))) (gimp-image-add-layer image copy-layer -1) (plug-in-gauss-iir 1 image copy-layer 1 TRUE TRUE) (gimp-layer-set-opacity copy-layer 60) (set! base-layer (car (gimp-image-merge-down image copy-layer 2))) (if (< type 2) (plug-in-vpropagate 1 image base-layer 2 TRUE 1.0 15 0 255) (begin (gimp-convert-rgb image) (plug-in-vpropagate 1 image base-layer 2 TRUE 1.0 15 0 255) (gimp-convert-grayscale image)) ) (gimp-levels base-layer 0 30 255 1.0 0 255) (if (equal? select FALSE) (begin (gimp-image-add-layer image backup-layer -1) (gimp-selection-load select-channel) (gimp-edit-clear backup-layer) (gimp-image-remove-channel image select-channel) (gimp-image-merge-down image backup-layer 2)) ) (gimp-image-undo-group-end image) (gimp-displays-flush) ) ) (script-fu-register "script-fu-pencil-sketch" "鉛筆画" "鉛筆画のように加工します" "Tamagoro <tamagoro_1@yahoo.co.jp>" "Tamagoro" "October 2004" "RGB*, GRAY*" SF-IMAGE _"Image" 0 SF-DRAWABLE _"Drawable" 0 ) (script-fu-menu-register "script-fu-pencil-sketch" "<Image>/Script-Fu/写真加工" )
|
|
【GIMP スクリプトの最新記事】
- PaintsChainer 用、線画作成 GIMP(Script-Fu)スクリプト
- GIMP スクリプトで、二段雲形吹き出し( Baloon-3 を改造 )
- GIMP : タマちゃんスクリプトの水部分
- 無事みつけた Pencil-sketch.scm でイラストを加工したら、やはり一番の出来で挿絵っぽくなりました。
- GIMP FX-Foundry : ロモ風スクリプト
- GIMP FX Foundry release for GIMP 2.6
- GIMP 水滴スクリプト
- フリーフォントで簡単アイコン・はんこ画像作成 + TTEdit + GIMP + ステンドグラスロゴスクリプト
- Analogize(torres-analogize.scm) の解説というか、日本語化『GIMP 用スクリプト』
- Imageafter の画像を加工してイラスト調背景に
- GIMP 効果の Landscape Illustrator
- Scripts that work in GIMP-2.8+
- GIMP スクリプトの基本を知る為のドキュメント
- GIMP 2.8にて、ステンドグラスロゴ。感じの良い改造です。
- 【GIMP2.6とステンドグラスロゴ】
- ステンドグラスロゴ【GIMPScript-Fu】
- 久しぶりにGIMPスクリプトを使って・・・







昔、Pencil-sketch.scm というスクリプトがあって、あちらこちらで紹介されているのですが、現在配布サイトが消滅していました。自分が紹介したのは、2006年11月18日 でしたが、インターネット上の情報としては、2012 年ごろまではダウンロードできたようです。
quick-sketch.scm
▼ 180
FU_sketch_pencil-sketch-BW.scm
▼ 合成されたもの
背景部分の薄いところも雰囲気を出す為にそれ用のパターンレイヤーが合成されています。
▼ パーツの一枚(レイヤー)
※ パターンを非表示にすると、こんな感じになります。
Pencil-sketch.scm(みつかりました)
あきらかに、前の二つより複雑な処理を行っている気がします。GIMP のスクリプトを読むのは結構気合がいるので読んでませんが、plugin も多くつかわれていたりと、特に plug-in-gauss-iir がキモのようでした(FU_sketch_pencil-sketch-BW.scm でも使われています)。
ソースコードの先頭にライセンス記述があるので貼っておきます





















