Skip to content

Instantly share code, notes, and snippets.

@RazerMoon
Last active July 26, 2021 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RazerMoon/14f527f187d7b22155cadb0de8b1d5d3 to your computer and use it in GitHub Desktop.
Save RazerMoon/14f527f187d7b22155cadb0de8b1d5d3 to your computer and use it in GitHub Desktop.
GIMP drop shadow windows

Inspired by this.

Tutorial

  • Take script from below and put it in C:\Users\<your name>\AppData\Roaming\GIMP\<version you're using>\scripts.
  • Open cmd and cd to where your image is.
  • Run this command:
    • "C:\Users\<your name>\AppData\Local\Programs\GIMP 2\bin\gimp-console-<version>.exe" -b "(report-drop-shadow \"<name of infile>\" \"<name of outfile>\" 0 0 30 60 TRUE)" -b "(gimp-quit 0)"

Adjust settings to your liking.

;
; report-drop-shadow.scm
; Copies an image with a drop shadow
; Author: Paul Taylor @bao7uo
;
; C:\Users\<your name here>\AppData\Roaming\GIMP\2.10\scripts\report-drop-shadow.scm
;
(define (report-drop-shadow infile outfile offsetx offsety radius opacity allowresizing)
(let*
(
(image (car (gimp-file-load RUN-NONINTERACTIVE infile infile)))
(drawable (car (gimp-image-get-active-layer image)))
)
(script-fu-drop-shadow image drawable offsetx offsety radius '(0 0 0) opacity allowresizing)
(set! drawable (car (gimp-image-merge-visible-layers image TRUE)))
(gimp-file-save RUN-NONINTERACTIVE image drawable outfile outfile)
(gimp-image-delete image)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment