; GIMP Screenshot Processor (Script-Fu) ; File: screenshot-processor.scm ; Version: 1.2 (Updated for GIMP 2.6) ; Description: ; To make a raw screenshot easier to handle and view, this script shrinks the ; screenshot by 80%, sharpens it to make the text more readable, reduces the ; palette to 256 colors to take less space, and adds a light gray border. ; Author: Dem Pilafian ; Public Domain Software -- Free to Use as You Like ; ; To Install: ; 1) Copy this file to: ; GIMP-2.0/share/gimp/2.0/scripts/screenshot-processor.scm ; 2) Filters --> Script-Fu --> Refresh Scripts ; ; To Run: ; 1) Create new image by pasting screenshot into GIMP ; 2) Tools --> Screenshot Processor ; 3) File --> Save --> Name: screenshot.png --> ; Save in folder: Desktop --> Save --> Save (define (screenshot-processor img draw) (gimp-image-scale img ;Shrink image 80% (* (car (gimp-image-width img)) 0.8) (* (car (gimp-image-height img)) 0.8)) (plug-in-sharpen TRUE img draw 25) ;Sharpen image (gimp-image-convert-indexed img ;Reduce colors to 256 1 0 256 FALSE TRUE "") (script-fu-addborder img draw ;Add 4px border 4 4 '(128 128 128) 0) (gimp-image-flatten img) ;Convert to single layer ) (script-fu-register "screenshot-processor" "Screenshot Processor" "Shrinks, sharpens, reduces color, and adds border to current image." "Dem Pilafian, Center Key Software" "Public Domain" "October 5, 2008" "" SF-IMAGE "Image" 0 SF-DRAWABLE "Drawable" 0) (script-fu-menu-register "screenshot-processor" "/Tools")