Fri Jul 07, 2017 12:31 pm
Fri Jul 07, 2017 12:38 pm
Fri Jul 07, 2017 2:39 pm
_,_,_,total,pixels,_=pdb.gimp_histogram(layer, HISTOGRAM_VALUE,0,0)
if pixels>0:
Fri Jul 07, 2017 6:21 pm
Sat Jul 08, 2017 12:17 pm
Sat Jul 08, 2017 3:58 pm
Sat Jul 08, 2017 4:18 pm
Sat Jul 08, 2017 6:03 pm
ofnuts wrote:Cool technique, literally thinking "outside of the box". but looking at the code:
1) I think you should use gimp_image_resize() instead if gimp_image_scale()
2) Never, ever use the clipboard operations in your scripts (unless you want to explicitly interact with the user, but this is quite rare). There are function to duplicate layers directly.
3) Once you have the selection, you can delete your additional layer