Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/harundogdu/react-tiff
- Owner: harundogdu
- Created: 2022-10-27T13:12:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T10:02:06.000Z (10 months ago)
- Last Synced: 2024-10-22T03:57:02.119Z (4 months ago)
- Topics: image, react, react-tiff-viewer, tiff, tiff-files, tiff-images, tiff-viewer
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-tiff
- Size: 1.78 MB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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)