{"id":6624,"date":"2008-06-17T14:02:36","date_gmt":"2008-06-17T07:02:36","guid":{"rendered":"http:\/\/www.kitty.in.th\/?page_id=6624"},"modified":"2011-09-21T14:21:07","modified_gmt":"2011-09-21T07:21:07","slug":"gimp-script-fu","status":"publish","type":"page","link":"https:\/\/kitty.in.th\/index.php\/projects\/gimp-script-fu\/","title":{"rendered":"GIMP&#8217;s Script-Fu"},"content":{"rendered":"<p>GIMP has a feature to extend capabilities by writing scripts to manipulate images. These scripts can be script-fu or python-fu. This is basically equivalent to Photoshop&#8217;s actions. For script-fu, it is written in an implementation of Scheme called SIOD, a kind of functional language similar to LISP (So you will face a lot of parentheses, just like LISP .. :P). You can call almost, if not all, functions available in GIMP, i.e., every menus, commands, extensions, python-fu, and script-fu. This means that what your script-fu will become a function in GIMP automatically. Nice, isn&#8217;t it ? These are script-fu I wrote:<\/p>\n<table>\n<tbody>\n<tr>\n<th>SCRIPTS<\/th>\n<th>DESCRIPTION<\/th>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-auto-levels.scm\">kitty.in.th-auto-levels.scm<\/a><\/td>\n<td>Scale level to the full range. The cut-off threshold is configurable<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-auto-photo-frame.scm\">kitty.in.th-auto-photo-frame.scm<\/a><\/td>\n<td>My auto-level + photo-frame<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-bw.scm\">kitty.in.th-bw.scm<\/a><\/td>\n<td>Convert an image to grayscale. A color filter is selectable<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-contrast-mask.scm\">kitty.in.th-contrast-mask.scm<\/a><\/td>\n<td>Perform contrast mask<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-handheld-size.scm\">kitty.in.th-handheld-size.scm<\/a><\/td>\n<td>Resize image to handheld resolutions<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-ir.scm\">kitty.in.th-ir.scm<\/a><\/td>\n<td>Infrared Filter effect<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-lomo.scm\">kitty.in.th-lomo.scm<\/a><\/td>\n<td>Lomography effect<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-photo-frame.scm\">kitty.in.th-photo-frame.scm<\/a><\/td>\n<td>My custom photo frame<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-sepia.scm\">kitty.in.th-sepia.scm<\/a><\/td>\n<td>Sepia effect<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-soft-filter.scm\">kitty.in.th-soft-filter.scm<\/a><\/td>\n<td>Soft filter effect<\/td>\n<\/tr>\n<tr>\n<td><a href=\"ftp:\/\/ftp.kitty.in.th\/pub\/sources\/script-fu\/kitty.in.th-velvia.scm\">kitty.in.th-velvia.scm<\/a><\/td>\n<td>Velvia-like effect<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Just put these scripts to\u00a0<tt>~\/.gimp-2.x\/scripts\/<\/tt>. They should appear in your Image&#8217;s Script-Fu -&gt; kitty.in.th automatically.<\/p>\n<p>Please be noted that most image manipulation techniques used in these scripts were taken from somewhere else (e.g., gimp guru, pantip.com, thaidphoto, etc. etc..). I just wrote script-fu to automate them. Credits should be given to those who invent the techniques.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GIMP has a feature to extend capabilities by writing scripts to manipulate images. These scripts can be script-fu or python-fu. This is basically equivalent to Photoshop&#8217;s actions. For script-fu, it is written in an implementation of Scheme called SIOD, a kind of functional language similar to LISP (So you will face a lot of parentheses, &hellip; <a href=\"https:\/\/kitty.in.th\/index.php\/projects\/gimp-script-fu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GIMP&#8217;s Script-Fu<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4888,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6624","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/pages\/6624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/comments?post=6624"}],"version-history":[{"count":3,"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/pages\/6624\/revisions"}],"predecessor-version":[{"id":6650,"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/pages\/6624\/revisions\/6650"}],"up":[{"embeddable":true,"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/pages\/4888"}],"wp:attachment":[{"href":"https:\/\/kitty.in.th\/index.php\/wp-json\/wp\/v2\/media?parent=6624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}