This Illustrator script does just that. Usage: Draw a Rectangle to serve as “cutter path”, select both the Rectangle and the Raster Image, run the Script.
Crop Images with Custom Shapes in Illustrator – Scripts for designers
This summary was compiled by our editorial team from publicly available information for quick reading. For full details, refer to original reporting where available.