batch-image-converter
v1.3.2
Published
Convert images in batch in the browser.
Downloads
20
Maintainers
Readme
Image-Converter
Convert images files in the browser with Dynamic Web TWAIN.
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.
Installation
Via CDN:
<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">
Via NPM:
npm install batch-image-converter
Usage
Bind the built-in UI to a container.
let container = document.querySelector('#app'); new ImageConverter({container:container});
Use the
convert
method to convert a file to the desired format.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.
new ImageConverter({license:"your license"});