Skip to content

donatj/mpo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 13, 2023
723b747 · Apr 13, 2023

History

48 Commits
Jan 26, 2019
Nov 11, 2018
Apr 14, 2015
Nov 11, 2018
Apr 13, 2023
Oct 13, 2017
Jun 18, 2020
Dec 14, 2015
Apr 17, 2015

Repository files navigation

MPO Decoder Library

Go Report Card GoDoc awesome-go

Simple Go JPEG MPO (Multi Picture Object) Decoder - Library and CLI Tool

The library and CLI tool contain the ability to convert MPO to Stereoscopic JPEG as well as various color combinations of Analglyph.

A Web UI for this library exists here:

https://donatstudios.com/MPO-to-JPEG-Stereo

Install CLI Tool

Binaries are availible for Darwin (macOS), Linux and Windows on the release page:

https://github.com/donatj/mpo/releases

From Source

go install github.com/donatj/mpo/cmd/mpo2img@latest

CLI Usage

mpo2img
usage: mpo2img <mpofile>
  -format string
    	Output format [stereo|red-cyan|cyan-red|red-green|green-red] (default "stereo")
  -help
    	Displays this text
  -outfile string
    	Output filename (default "output.jpg")

WIP

Todo:

  • Optimization
  • Add Writer
  • Add more control over stereo/anaglyph