Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crop Scale Desaturate script - ChatGPT seems to make a mess
#3
Here's how I'd do part of your requirement:
Code:
selection, x1, y1, x2, y2 = pdb.gimp_selection_bounds(Image)  
pdb.gimp_image_crop(Image, (x2-x1), (y2 - y1), x1, y1)
pdb.gimp_drawable_desaturate(Drawable, 2)

You have to have made a selection using the Rectangle select tool, not using the crop tool.
Reply


Messages In This Thread
RE: Crop Scale Desaturate script - ChatGPT seems to make a mess - by Kevin - 04-27-2023, 10:31 AM

Forum Jump: