https://github.com/blackironj/panorama
Convert equirectangular panorama img to cubemap img
https://github.com/blackironj/panorama
converter cubemap equirectangular-panorama equirectangular-to-cubemap go image
Last synced: 5 months ago
JSON representation
Convert equirectangular panorama img to cubemap img
- Host: GitHub
- URL: https://github.com/blackironj/panorama
- Owner: blackironj
- License: mit
- Created: 2021-01-22T09:49:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-18T08:23:48.000Z (over 1 year ago)
- Last Synced: 2025-03-18T09:29:56.858Z (over 1 year ago)
- Topics: converter, cubemap, equirectangular-panorama, equirectangular-to-cubemap, go, image
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 32
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Equirectangular panorama to Cubemap
Porting c++ to go from
Convert an equirectangular panorama image into cubemap image. this simple app is written by Go
## Screenshot

> Image source: Timothy Oldfield on Unsplash
### Usage
It is possible to convert **JPEG** and **PNG** image format
``` sh
Usage:
panorama [flags]
Flags:
-h, --help help for panorama
-i, --in string input image file path (required if --indir is not specified)
-d, --indir string input directory path (required if --in is not specified)
-l, --len int edge length of a cube face (default 1024)
-o, --out string out file dir path (default ".")
-s, --sides array list of sides splited by "," (optional)
-q, --quality int jpeg file output quality ranges from 1 to 100 inclusive, higher is better (optional, default 75)
```
``` sh
# example
./panorama --in ./sample_image.jpg --out ./dist --len 512 --sides left,right,top,bottom,front,back
```
### Installation
``` sh
git clone https://github.com/blackironj/panorama.gitgit clone
cd panorama
go build -o panorama
```
Or [Download here](https://github.com/blackironj/panorama/releases/tag/1.0)
### TODO
- Optimize code
- It uses 1 go-routine per each face to convert. (use 6 go-routines)
- Add more interpolation algorithms