Skip to content

Instantly share code, notes, and snippets.

@Pentan
Pentan / mpo2jpgs.py
Created January 24, 2012 09:38
split MPO format file (like a 3DS's stereo 3D picture) to individual JPG images.
import sys
import os
from struct import unpack
def splitMPO( mpof ):
filename = mpof.name
#print "MPO input: {}".format(filename)
#check SOI
soi = mpof.read(2)
if soi != "\xff\xd8" :