GithubHelp home page GithubHelp logo

harundogdu / react-tiff Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 1.83 MB

A React component for viewing TIFF images.

Home Page: https://www.npmjs.com/package/react-tiff

HTML 11.80% JavaScript 71.64% CSS 16.56%
react-tiff-viewer tiff-viewer tiff-files image react tiff tiff-images

react-tiff's Introduction

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

npm install --save react-tiff
yarn add react-tiff

Usage

import React from 'react'

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

const App = () => {
  return (
    <TIFFViewer
      tiff={tiffFile}
      lang='en' // en | de | fr | es | tr | ja | zh | ru | ar | hi
      paginate='ltr' // bottom | ltr
      buttonColor='#141414'
      printable
    />
  )
}

export default App

Live

Demo

Extras

Made with create-react-library

NPM JavaScript Style Guide

License

MIT © harundogdu

react-tiff's People

Contributors

anthonygress avatar harundogdu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-tiff's Issues

Add Japanese to i18n

Hello @harundogdu ,

I introduce this nice library to an application provided in Japan.
I wanna this library to support Japanese.

May I implement it and make PR?

Add type="button" to buttons for pagination

Hello @harundogdu ,

When previewing a TIFF file in a form tag and clicking the next button in order to check the next page of the TIFF file, the form was submitted immediately. I think the reason the buttons don't have an attribute, type="button".

May I implement it and make PR?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.