Shell – Tool to automatically extract sub-images that are inside an image: sub-images separated by whitespace

image manipulationimagemagickshell-scriptsoftware-recUtilities

Is there a tool/script which can extract images (save them as separate image files) inside an image, each sub-image is separated by whitespace?

This:

enter image description here

Would result in 3x:

enter image description here

Image Source

Best Answer

My Imagemagick scripts multicrop or multicrop2 will work on your image to separate them into 3 new images. Optionally you can unrotate them. They are Unix bash shell scripts and require a Unix-like environment. See my web site at http://www.fmwconcepts.com/imagemagick/index.php

You do not mention what OS you are using and if you have Imagemagick installed and what version that might be.

Related Question