GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - donatj/mpo: MPO Stereoscopic 3D Photo Encoder/Decoder Library and CLI Utility

BranchesTags
Open more actions menu

Latest commit

 

History

123 Commits
123 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmd
cmd
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
anaglyph.go
anaglyph.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
reader.go
reader.go
 
 
stereo.go
stereo.go
 
 
stereo_test.go
stereo_test.go
 
 
writer.go
writer.go
 
 
writer_test.go
writer_test.go
 
 

Repository files navigation

MPO Encoder/Decoder Library

GoDoc awesome-go

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

The library and CLI can:

  • Decode an MPO into individual JPEG frames.
  • Encode multiple JPEG frames into a Baseline-MP MPO.
  • Convert an MPO to a stereoscopic (side-by-side) JPEG.
  • Create anaglyph images (red–cyan, cyan–red, red–green, green–red).

A Web UI for converting MPO to JPEG is available at:

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

Install CLI Tool

Binaries are available 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
go install github.com/donatj/mpo/cmd/img2mpo@latest

CLI Usage

mpo2img

Convert an MPO file to a stereoscopic JPEG or anaglyph image.

$ mpo2img -help
Usage: mpo2img <mpofile>

Convert a Multi-Picture Object (MPO) file to an image.

  -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")

img2mpo

encode multiple images into an MPO file.

$ img2mpo -help
Usage: img2mpo <imagefile> [<imagefile> ...]

Convert one or more images to a Multi-Picture Object (MPO) file.

Supported image formats: JPEG, PNG, GIF, BMP, TIFF, WebP

  -help
        Displays this text
  -outfile string
        Output filename (default "output.mpo")
  -quality int
        JPEG quality [0-100] (default 90)

WIP

Todo:

  • Optimization
  • Add more control over stereo/anaglyph

About

MPO Stereoscopic 3D Photo Encoder/Decoder Library and CLI Utility

donatstudios.com/MPO-to-JPEG-Stereo

Topics

decodergojpeg-mpompomulti-picturestereoscopic-3d

Resources

Readme
MIT license
Activity

Stars

28 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.