I've read a little and found some scripts that would split up images based on white space in between the images, but I can't guarantee that there will always be whitespace where the cuts need to happen. I read how these scripts work - specifically Fred's multicrop. It looks like he generates a mask for the image and then uses that mask to split up the image. Well, I already have the mask that I need to split up the image. How can I use that mask to apply the cuts? (These cuts are not uniform - each resulting image will be the same size, but the cuts don't follow any sort of grid.)
I found this forum topic: viewtopic.php?f=1&t=14148 which sounds exactly like what I'm looking to do. Anthony posed this suggestion:
Code: Select all
convert actual_image.png null: mask1.png mask2.png mask3.png \
+matt -compose CopyOpacity -layers composite -trim +repage \
images-%d.png
Does anyone have any suggestions on how to take a large image split it into parts? Ideally taking a gif mask and using that to make the cuts? I'd love to hear how others went about doing this.
Thanks!