# react-thumbolidator

> A React component for thumbolidator

Latest version **0.0.5** (published 2019-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-thumbolidator
pnpm add react-thumbolidator
yarn add react-thumbolidator
bun add react-thumbolidator
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-12-24 |
| First published | 2019-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 732.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | kennyhyun |
| Maintainers | kennyhyun |

## Links

- npm: https://www.npmjs.com/package/react-thumbolidator
- Repository: https://github.com/kennyhyun/thumbolidator
- Homepage: https://github.com/kennyhyun/thumbolidator#readme
- Issues: https://github.com/kennyhyun/thumbolidator/issues
- npm.io page: https://npm.io/package/react-thumbolidator

## Recent versions

- 0.0.5 (latest) — 2019-12-24
- 0.0.4 — 2019-12-22
- 0.0.3 — 2019-12-04

## README

# React Thumbolidator

> A React component for Thumbolidator

See also [Thumbolidator](https://www.npmjs.com/package/thumbolidator)

This is still a proof of concept. Please don't use in any serious project.

[![NPM](https://img.shields.io/npm/v/react-thumbolidator.svg)](https://www.npmjs.com/package/react-thumbolidator)

![thumb.micro](https://kennyhyun.github.io/thumbolidator/images/images1/thumb.micro.jpg) [thumb.micro](https://kennyhyun.github.io/thumbolidator/images/images2/thumb.micro.jpg)

Try demo [here](https://kennyhyun.github.io/thumbolidator/)!

## Concept

[Jpegtran](https://jpegclub.org/jpegtran/) can merge jpeg files into a big jpeg file. This will help reduce downloading many number of jpeg files through http.

Jpegtran drop-patch does not re-encode jpegs so thumbnails can be added later on without dropping quality.`

Thumbolidator creates two tiles of the thumbnails, Micro and Thumbo. The `Thumbo` react component will shows a micro thumbnail while loading thumbnails.

## Install

```bash
npm install --save react-thumbolidator
```

## Usage

```jsx
import React, { Component } from 'react'

import { Thumbo } from 'react-thumbolidator'

class Example extends Component {
  render ({ files }) {
    return (
      <>
        {files.map(file => (
          <Thumbo src={`http://localhost/images/${file}`} key={file} size={64} />
        ))}
      </>
    )
  }
}
```

## Todos and limitations

- Needs a web-server setting to return `.thumbolidate` file for the directory
- [x] Support pagination
- [ ] Managing cache for memory usage
  - Cannot remove memoized cache

## License

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

---
_Source: https://npm.io/package/react-thumbolidator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
