How can I set options like “delete cropped pixels” in a python scirpt?
Three quite different options.
- You can use
Gimp.Image::crop()for the case off/on/off (and of course a smaller canvas)
Otherwise:
- With
Selected layers: you act on each layer in succession withGimp.Layer::resize() - Without
Selected layers: you useGimp.Image::resize()
Thank you,
but there isn’t a parameter like “context_set_xyz”
for deleting or not deleting the cropped pixels?
Can I assume that they are always deleted (by design so to say)?
If you use the Image::crop() or Layer::resize() they are always deleted. If fact “not deleting cropped pixels” is just not resizing the layers to follow the canvas.
