tony-xlh / Image-Converter

Convert images files in the browser with Dynamic Web TWAIN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Online demo

Installation

  1. 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">
  2. Via NPM:

    npm install batch-image-converter

Usage

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

    let container = document.querySelector('#app');
    new ImageConverter({container:container});
  2. 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"});

About

Convert images files in the browser with Dynamic Web TWAIN


Languages

Language:TypeScript 79.1%Language:CSS 12.5%Language:HTML 8.4%