Skip to content

Instantly share code, notes, and snippets.

Created Mar 20, 2011
What would you like to do?
convert a .mpo file to an animation gif
# mpo2gif
# convert a .mpo file to a animation gif.
# this idea is from
# this script requires exiftool and imagemagick.
echo $1
gif=`basename $1 .MPO`.gif
exiftool -trailer:all= $1 -o $rjpg
exiftool $1 -mpimage2 -b > $ljpg
convert -loop 0 -delay 5 $ljpg -delay 5 $rjpg $gif
rm $rjpg $ljpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment