An open API service indexing awesome lists of open source software.

https://github.com/afichet/openexr-converter

Tools for converting TIFF to OpenEXR and OpenEXR to PNG
https://github.com/afichet/openexr-converter

converter image openexr png tiff

Last synced: 8 months ago
JSON representation

Tools for converting TIFF to OpenEXR and OpenEXR to PNG

Awesome Lists containing this project

README

          

Warning!
========

This repository is currently not maintained and after knowing much better the OpenEXR format, there is a lot of missing features that shall have been supported:
- No support for displayWindow
- No support for chromaticities

If you want to use the proper tool, I recommend using OpenImageIO tools: https://openimageio.readthedocs.io/en/v2.2.15.1/oiiotool.html

So, take this repo with a grain of salt, an example on how to read OpenEXR images using the OpenEXR library, not as the state of the art.

OpenEXR converter
=================

These tools are simple utilities to convert images files from OpenEXR to PNG 8bit sRGB files and TIFF to OpenEXR.

Checking out the repository
===========================

```
git clone git@github.com:yama-chan/openexr-converter.git
git submodule update --init --recursive
```

Compilation
===========

Dependencies
------------
You need to install OpenEXR to compile the tool:
* libopenexr
* libtiff

### Ubuntu 16.04 LTS

```
sudo apt install libopenexr-dev libtiff5-dev
```

### Arch Linux

```
sudo pacman -S openexr libtiff
```

### Compilation
In order to compile in a folder build the tool, do:

```
mkdir build
cd build
cmake ..
make
```

After compilation,
* `exr-png` will be created in `src/exr-png` folder.
* `tiff-exr` will be created in `src/tiff-exr` folder.

To install, do:

```
sudo make install
```

Usage
=====

OpenEXR to PNG
--------------

```
exr-png [-g ] [-a] -o -i [--] [--version]
[-h]
```

Where:

```
-g , --gamma
Set the gamma correction (default sRGB)

-a, --ignore-alpha
Ignore alpha channel

-o , --output
(required) Set file to save to

-i , --input
(required) Set file to convert

--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.

--version
Displays version information and exits.

-h, --help
Displays usage information and exits.
```

TIFF to OpenEXR
---------------

```
tiff-exr
```