{"id":1636,"date":"2011-07-28T00:20:32","date_gmt":"2011-07-28T07:20:32","guid":{"rendered":"http:\/\/mcclanahoochie.com\/blog\/?post_type=portfolio&#038;p=1636"},"modified":"2023-06-10T10:32:18","modified_gmt":"2023-06-10T17:32:18","slug":"gimp-scripts-auto-enhance","status":"publish","type":"post","link":"https:\/\/mcclanahoochie.com\/blog\/2011\/07\/gimp-scripts-auto-enhance\/","title":{"rendered":"GIMP Scripts"},"content":{"rendered":"<p>Usually, when I&#8217;m using GIMP to edit pictures, there are a couple of simple enahcnements I routinely apply to each image. So, I&#8217;m slowly learning GIMP scripting and creating some simple GIMP scripts to help automate some steps in my <em><a href=\"http:\/\/wp.me\/pZdXI-nl\" target=\"_blank\" rel=\"noopener\">digital darkroom workflow<\/a><\/em>.<\/p>\n<p>Here are two scripts that I&#8217;ve come up with so far, that automate some tasks that I do routinely.\u00a0They are works in progress, but seem useful enough now to share here:<\/p>\n<p>&nbsp;<\/p>\n<p>A <strong><a href=\"http:\/\/code.google.com\/p\/mcclanahoochie\/source\/browse\/gimp_scripts\/batch-auto-levels.scm\" target=\"_blank\" rel=\"noopener\">batch script<\/a><\/strong> for <em>Auto White Balance \/ Contrast Stretch \/ HSV Stretch<\/em><\/p>\n<ul>\n<li>Use on an entire directory of images<\/li>\n<li>Output image is named &#8220;G_&lt;original filename&gt;&#8221;<\/li>\n<li>To run:<\/li>\n<li><span class=\"Apple-style-span\" style=\"font-family: monospace; line-height: 21px; font-size: medium;\">gimp -i -b &#8216;(batch-auto-levels &#8220;*.JPG&#8221;)&#8217; -b &#8216;(gimp-quit 0)&#8217;<\/span><\/li>\n<\/ul>\n<p><span class=\"Apple-style-span\" style=\"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\">A <strong><a href=\"http:\/\/code.google.com\/p\/mcclanahoochie\/source\/browse\/gimp_scripts\/auto-wb-lce.scm\" target=\"_blank\" rel=\"noopener\">GUI plugin<\/a><\/strong> for <em>Auto White Balance \/ Local Contrast Enhancement \/ LOMO<\/em><\/span><\/p>\n<ul>\n<li>Use inside GIMP<\/li>\n<li>Check boxes for each effect<\/li>\n<li>Creates a new layer: &#8220;Enhanced&#8221;<\/li>\n<li>To run:<\/li>\n<li style=\"font-family: monospace; font-size: medium;\">Script-Fu &gt; Color &gt; Auto WB+LCE<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Screenshot of the GUI <span style=\"color: #808080;\"><em>Auto WB+LCE<\/em>\u00a0<\/span>plugin:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/07\/awb-lce-dialog.png\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1637\" data-permalink=\"https:\/\/mcclanahoochie.com\/blog\/2011\/07\/gimp-scripts-auto-enhance\/awb-lce-dialog\/#main\" data-orig-file=\"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/07\/awb-lce-dialog.png?fit=418%2C288&amp;ssl=1\" data-orig-size=\"418,288\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"awb-lce-dialog\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/07\/awb-lce-dialog.png?fit=418%2C288&amp;ssl=1\" class=\"alignnone size-medium wp-image-1637\" title=\"awb-lce-dialog\" src=\"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/07\/awb-lce-dialog-300x206.png?resize=300%2C206\" alt=\"\" width=\"300\" height=\"206\" srcset=\"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/07\/awb-lce-dialog.png?resize=300%2C206&amp;ssl=1 300w, https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/07\/awb-lce-dialog.png?w=418&amp;ssl=1 418w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Both scripts install to the\u00a0<em>~\/.gimp-2.x\/scripts\/<\/em>\u00a0folder.<\/p>\n<p>I tend to run the batch script first, then open up an image inside GIMP to further process with my GUI script\u00a0and others.<\/p>\n<p>Any feedback \/ tips \/ advice \/ requests is appreciated&#8230; Enjoy!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usually, when I&#8217;m using GIMP to edit pictures, there are a couple of simple enahcnements I routinely apply to each image. So, I&#8217;m slowly learning GIMP scripting and creating some simple GIMP scripts to help automate some steps in my digital darkroom workflow. Here are two scripts that I&#8217;ve come up with so far, that &#8230; <a title=\"GIMP Scripts\" class=\"read-more\" href=\"https:\/\/mcclanahoochie.com\/blog\/2011\/07\/gimp-scripts-auto-enhance\/\" aria-label=\"Read more about GIMP Scripts\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[94,118,108,54,106,53,101,29,119],"class_list":["post-1636","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-enhancement","tag-gimp","tag-image-enhancement","tag-image-processing","tag-photo","tag-photography","tag-programming","tag-projects","tag-scripts"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pZdXI-qo","jetpack-related-posts":[{"id":516,"url":"https:\/\/mcclanahoochie.com\/blog\/2010\/08\/gimp-national-geographic-script\/","url_meta":{"origin":1636,"position":0},"title":"Awesome National Geographic Script in GIMP","author":"mcclanahoochie","date":"August 21, 2010","format":false,"excerpt":"After installing the new plug-in registry for GIMP, I stumbled upon the amazing National Geographic Script. It is incredible! This script simulates high quality, vivid photos - like the ones from the National Geographic magazine. It uses a configurable mixture of shadow recovery, sharpening, local contrast, and various color overlay\u2026","rel":"","context":"In \"gimp\"","block_context":{"text":"gimp","link":"https:\/\/mcclanahoochie.com\/blog\/tag\/gimp\/"},"img":{"alt_text":"Original Image - Driftwood","src":"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2010\/08\/01540_driftwood_384x240.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3434,"url":"https:\/\/mcclanahoochie.com\/blog\/2015\/06\/lightroom-export-to-gimp-plugin\/","url_meta":{"origin":1636,"position":1},"title":"Lightroom Export to GIMP Plugin","author":"mcclanahoochie","date":"June 14, 2015","format":false,"excerpt":"Tags: gimp, image editing, lightroom, photography, plugin, portfolio, projects, scripts Export image to Gimp plugin\/template for Lightroom \u00a0+\u00a0 This post will show you how to easily setup lightroom to export a photo from Lightroom to Gimp for external editing. (Note these instructions are for Mac OSX, but can be translated\u2026","rel":"","context":"With 5 comments","block_context":{"text":"With 5 comments","link":"https:\/\/mcclanahoochie.com\/blog\/2015\/06\/lightroom-export-to-gimp-plugin\/#comments"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wwwimages2.adobe.com\/content\/dam\/Adobe\/images\/shared\/product_mnemonics\/50x50\/box-lightroom6-50x50.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2658,"url":"https:\/\/mcclanahoochie.com\/blog\/2013\/01\/lightroom-plugins-infrared-and-pyrdetail\/","url_meta":{"origin":1636,"position":2},"title":"2 Lightroom Plugins","author":"mcclanahoochie","date":"January 22, 2013","format":false,"excerpt":"Infrared Photos In Lightroom I came across this\u00a0excellent Gimp infrared tutorial\u00a0not long ago, and it got me excited to try some infrared photo processing. Being a recent Lightroom addict, I found it annoying that Lightroom does not support color channel mixing, and having to constantly export-edit-import slowed my workflow. In\u2026","rel":"","context":"In \"image editing\"","block_context":{"text":"image editing","link":"https:\/\/mcclanahoochie.com\/blog\/tag\/image-editing\/"},"img":{"alt_text":"Ir-M","src":"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2013\/01\/Ir-M.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2072,"url":"https:\/\/mcclanahoochie.com\/blog\/2012\/01\/using-gradient-layer-masks-in-gimp\/","url_meta":{"origin":1636,"position":3},"title":"Using Gradient Layer Masks in GIMP","author":"mcclanahoochie","date":"January 29, 2012","format":false,"excerpt":"Some simple notes on how to seamlessly blend images in GIMP using gradient based layer masks. INPUT IMAGES 4 images with only different shutter speeds: PROCESS Open all images as separate layers in a new GIMP canvas: Right click a layer > \"Add layer mask\" > choose default \"White full\u2026","rel":"","context":"In \"computational photography\"","block_context":{"text":"computational photography","link":"https:\/\/mcclanahoochie.com\/blog\/tag\/computational-photography\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2012\/01\/stream-i1-2-150x150.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":473,"url":"https:\/\/mcclanahoochie.com\/blog\/2010\/08\/yet-another-fresh-ubuntu-install-setup-script\/","url_meta":{"origin":1636,"position":4},"title":"Yet Another Fresh Install of Ubuntu Setup Script","author":"mcclanahoochie","date":"August 16, 2010","format":false,"excerpt":"Over the years of installing, updating, re-installing Ubuntu, I have slowly crafted a decent \"fresh install\" bash script to help setup and configure Ubuntu after a clean install. This script is ever evolving, and still doesn't capture everything I want it to, but it does knock out a giant chunk\u2026","rel":"","context":"In \"install\"","block_context":{"text":"install","link":"https:\/\/mcclanahoochie.com\/blog\/tag\/install\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1992,"url":"https:\/\/mcclanahoochie.com\/blog\/2011\/12\/using-topaz-adjust-and-digikam-in-linux\/","url_meta":{"origin":1636,"position":5},"title":"Using Topaz Adjust with digiKam in Linux","author":"mcclanahoochie","date":"December 29, 2011","format":false,"excerpt":"TL;DR; I just found my new photography workflow: digiKam\u00a0for photo management, organization, and simple batch editing, Topaz Adjust 5\u00a0for image enhancement, GIMP\u00a0for ultra-fine tuning ... and the best part is that all this is in Linux (Ubuntu 11.04 to be exact) - making this a great birthday present to myself\u2026","rel":"","context":"In \"digikam\"","block_context":{"text":"digikam","link":"https:\/\/mcclanahoochie.com\/blog\/tag\/digikam\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mcclanahoochie.com\/blog\/wp-content\/uploads\/2011\/12\/ubuntu-logo-150x150.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/posts\/1636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/comments?post=1636"}],"version-history":[{"count":0,"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/posts\/1636\/revisions"}],"wp:attachment":[{"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/media?parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/categories?post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mcclanahoochie.com\/blog\/wp-json\/wp\/v2\/tags?post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}