# batch-image-converter

> Convert images in batch in the browser.

Latest version **1.3.2** (published 2024-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install batch-image-converter
pnpm add batch-image-converter
yarn add batch-image-converter
bun add batch-image-converter
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2024-01-09 |
| First published | 2023-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | xulihang |
| Maintainers | xulihang |
| Keywords | tiff, pdf, jpg, bmp, convert, dynamsoft |

## Links

- npm: https://www.npmjs.com/package/batch-image-converter
- Repository: https://github.com/tony-xlh/Image-Converter
- Homepage: https://github.com/tony-xlh/Image-Converter#readme
- Issues: https://github.com/tony-xlh/Image-Converter/issues
- npm.io page: https://npm.io/package/batch-image-converter

## Dependencies (2)

- [dwt](https://npm.io/package/dwt.md) ^18.0.2
- [jszip](https://npm.io/package/jszip.md) ^3.10.1

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.3.2 (latest) — 2024-01-09
- 1.3.1 — 2024-01-09
- 1.3.0 — 2023-08-01
- 1.2.0 — 2023-07-26
- 1.1.0 — 2023-07-26
- 1.0.0 — 2023-07-25

## README

# Image-Converter

Convert images files in the browser with [Dynamic Web TWAIN](https://www.dynamsoft.com/web-twain/overview).

It can convert images in bmp, jpeg, png, tiff and pdf to images in jpeg, png, tiff and pdf. It runs purely in the browser.

You can select multiple images or load multiple images from a zip file. You can export the images one by one or in a zip file.

[Online demo](https://tony-xlh.github.io/Image-Converter/)

## Installation

1. Via CDN:

   ```html
   <script type="module">
     import { ImageConverter } from 'https://unpkg.com/batch-image-converter/dist/image-converter.js';
     window.onload = function(){
       let container = document.querySelector('#app');
       new ImageConverter({container:container});
     }
   </script>
   <link href="https://unpkg.com/batch-image-converter/dist/style.css" rel="stylesheet">
   ```

2. Via NPM:

   ```bash
   npm install batch-image-converter
   ```
   
## Usage

1. Bind the built-in UI to a container.

   ```js
   let container = document.querySelector('#app');
   new ImageConverter({container:container});
   ```

2. Use the `convert` method to convert a file to the desired format.

   ```js
   let files = await imageConverter.convert(file,ImageFormat.JPG);
   ```

## Product License

You need to pass a license for Dynamic Web TWAIN. You can apply for one [here](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt).

```js
new ImageConverter({license:"your license"});
```

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