Split JPEG Multi-Picture Format (MPO) images into simple JPG files. This is a small Python script using the excellent Pillow library.
$ mposplit.py *.JPG
== Processing P1010386.JPG ==
Extracting image to P1010386-0.JPG
Extracting image to P1010386-1.JPG
== Processing P1010387.JPG ==
Extracting image to P1010387-0.JPG
Extracting image to P1010387-1.JPG
Written by Felix Eckhofer
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2. See the COPYING file for more details.