Socket
Socket
Sign inDemoInstall

batch-image-converter

Package Overview
Dependencies
14
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    batch-image-converter

Convert images in batch in the browser.


Version published
Weekly downloads
20
increased by33.33%
Maintainers
1
Install size
125 MB
Created
Weekly downloads
 

Readme

Source

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"});

Keywords

FAQs

Last updated on 09 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc