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?


enter image description here

Would result in 3x:

enter image description here

Image Source


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.

  • Linux Mint 18.1 running ImageMagick 6.8.9-9, I'll have a look at your script. Thanks! btw – daka Jan 21 '17 at 20:27
  • Very nice collection of scripts. Now in the case of not-too-long scripts, would you mind perhaps also posting them here in addition to the link? Please keep in mind that this might mean that you are possibly making a copy under a different license though. It's only so that even should your link stop working that the script is still retained as part of the answer to this question. – phk Jan 21 '17 at 20:32
  • Is there any way to remove the white border that is left surrounding the image? – daka Jan 21 '17 at 20:33
  • 1
    Try the unrotate options or just use Imagemagick -shave or -chop – fmw42 Jan 22 '17 at 21:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.