An extension of the imcrop command to be used in batch mode for processing multiple files.
Updated 13 Oct 2016

View License

This will enable users to crop a batch of images stored in a single folder. The function is based on Matlab's imcrop and extends its capabilities. The allowed image types are bmp, gif, hdf, jpg, jpeg, jp2, jpx, pbm, pcx, pgm, png, pnm, ppm, ras, tif, tiff, xwd.
The user picks a folder and the function will check if it contains any figures. If more than one figure type is found, the user will pick which type to crop.
Then, the user will interactively crop the first figure (similarly to imcrop). Finally, upon approval, all the images in the folder will be cropped using the same coordinates.

Cite As

Amir Paster (2024). crop_multiple_images(images_folder) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes