You are here

Suggested patch

Hi,

Nice cross processing plug-in! After playing around with it a bit, I found it impractical to have the whole image flattened after applying the effect. The suggested patch will merge the added layers down instead, thus leaving underlying layers untouched.

--- cross_process.py	2013-07-01 10:52:51.487963625 +0200
+++ /usr/lib/gimp/2.0/plug-ins/cross_process.py	2013-07-01 10:36:51.838421957 +0200
@@ -9,6 +9,7 @@
 # http://www.jesusda.com/blog/index.php?id=375
 
 from gimpfu import *
+from gimpenums import *
 from random import randint
 
 gettext.install("gimp20-python", gimp.locale_directory, unicode=True)
@@ -55,7 +56,8 @@
 	tint_lyr.opacity = tint
 	gimp.set_foreground(fg)
 
-	img.flatten()
+	merged_lyr = img.merge_down(tint_lyr, CLIP_TO_IMAGE)
+	img.merge_down(merged_lyr, CLIP_TO_IMAGE)
 	img.undo_group_end()
     
 register(

With regards,
Alf Storm

No answers yet

Subscribe to Comments for "Suggested patch"