diff -u ripply-anim.scm ripply-anim_jthack1.scm
--- ripply-anim.scm	2014-08-26 23:07:46.000000000 +0100
+++ ripply-anim_jthack1.scm	2015-04-22 09:50:26.982442297 +0100
@@ -5,6 +5,10 @@
 ; Designed to be used in conjunction with a plugin capable
 ; of saving animations (i.e. the GIF plugin).
 ;
+; Modification History:
+; V1.1  21-4-15 JT  Changed hard-coded RGB image and layer types to use same types as input image and drawable
+;                   so script can handle RGBA and GRAYA properly
+
 
 (define (script-fu-ripply-anim img drawable displacement num-frames edge-type)
 
@@ -74,7 +78,7 @@
     (set! xoffset (/ width num-frames))
     (set! yoffset (/ height num-frames))
 
-    (let* ((out-imagestack (car (gimp-image-new width height RGB))))
+    (let* ((out-imagestack (car (gimp-image-new width height (car (gimp-image-base-type img))))))  ;*JT*
 
     (gimp-image-undo-disable out-imagestack)
 
@@ -87,7 +91,7 @@
                  (number->string (- num-frames remaining-frames) 10)
                  " (replace)"))
       (set! this-layer (car (gimp-layer-new out-imagestack
-                                            width height RGB
+                                            width height (car (gimp-drawable-type drawable))  ;*JT*
                                             layer-name 100 NORMAL-MODE)))
       (gimp-image-insert-layer out-imagestack this-layer 0 0)
 
@@ -120,13 +124,13 @@
   _"Create a multi-layer image by adding a ripple effect to the current image"
   "Adam D. Moss (adam@foxbox.org)"
   "Adam D. Moss"
-  "1997"
+  "1997 Modified 21-4-15 by Jon Tait (jontait2 at gimpchat.com)"  ;*JT*
   "RGB* GRAY*"
   SF-IMAGE      "Image to animage"    0
   SF-DRAWABLE   "Drawable to animate" 0
   SF-ADJUSTMENT _"Rippling strength"  '(3 0 256 1 10 1 0)
   SF-ADJUSTMENT _"Number of frames"   '(15 0 256 1 10 0 1)
-  SF-OPTION     _"Edge behavior"      '(_"Wrap" _"Smear" _"Black")
+  SF-OPTION     _"Edge behavior"      '(_"Wrap" _"Smear" _"Black/transparent")  ;*JT*
 )
 
 (script-fu-menu-register "script-fu-ripply-anim"

