Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/harundogdu/react-tiff

A React component for viewing TIFF images.
https://github.com/harundogdu/react-tiff

image react react-tiff-viewer tiff tiff-files tiff-images tiff-viewer

Last synced: 4 months ago
JSON representation

A React component for viewing TIFF images.

Awesome Lists containing this project

README

        

# react-tiff

A React component for viewing TIFF images.

## Features

- Supports multi-page TIFF images
- Supports TIFF images with multiple channels (e.g. RGB, RGBA, CMYK)
- Supports TIFF images with multiple resolutions (e.g. 1x, 2x, 4x)
- Supports TIFF images with multiple tiles
- Supports TIFF images with multiple strips
- Supports TIFF images with multiple samples per pixel (e.g. 1, 2, 3, 4)
- Supports TIFF images with multiple bits per sample (e.g. 1, 2, 4, 8, 16, 32)
- Supports TIFF images with multiple photometric interpretations (e.g. min-is-black, min-is-white, RGB, palette color, transparency mask, CMYK, YCbCr, CIELab)
- Support you can print out tiff images.

## Install

```bash
npm install --save react-tiff
```

```bash
yarn add react-tiff
```

## Usage

```jsx
import React from 'react'

import { TIFFViewer } from 'react-tiff'
import 'react-tiff/dist/index.css'
import tiffFile from './images/multipage.tiff'

const App = () => {
return (

)
}

export default App
```

## Live

[Demo](https://codesandbox.io/s/react-tiff-95u65f)

## Extras

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/react-tiff-viewer.svg)](https://www.npmjs.com/package/react-tiff-viewer) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## License

MIT © [harundogdu](https://github.com/harundogdu)