03-30-2021, 01:38 PM
I added a new path-cropping plugin: Crop a path by a general selection. The new version is 0.6 and it is in the same place as before:
http://kmarkku.arkku.net/Path_crop_files...aster.html
It seems to work correctly though it is slow. Please report any erronous behaviour.
As an example I use the Truchet path. Here I have drawn an additional path (red) from which to make a selection.
I did:
The input "Threshold" is meaningful if your selection is feathered.
In complicated cases the plugin is slow (the above run takes some 31 seconds), which is mainly due to the large number of calls to image.selection.get_pixel(). There may be some way to restrict that number of calls, but that would require further complication of the code. And it may not be so efficient after all. Currently I am not willing to try it. Going now to another project. Happy for having finished this. Please have fun.
http://kmarkku.arkku.net/Path_crop_files...aster.html
It seems to work correctly though it is slow. Please report any erronous behaviour.
As an example I use the Truchet path. Here I have drawn an additional path (red) from which to make a selection.
I did:
- Path to selection from the red path.
- Call the new plugin "crop path by general selection" (choosing the inside-outside option to be "both").
The input "Threshold" is meaningful if your selection is feathered.
In complicated cases the plugin is slow (the above run takes some 31 seconds), which is mainly due to the large number of calls to image.selection.get_pixel(). There may be some way to restrict that number of calls, but that would require further complication of the code. And it may not be so efficient after all. Currently I am not willing to try it. Going now to another project. Happy for having finished this. Please have fun.