Code Monkey home page Code Monkey logo

heic2any's Introduction

HEIC2ANY

converting HEIC/HEIF image files to JPEG/PNG/GIF in the browser. This tool is specifically for the browser environment, it WILL NOT work in node environment.

Click here for demo


  • Installation: yarn
yarn add heic2any
  • Installation: npm
npm install heic2any
  • Installation: no module bundler
<!-- just include the file in a script tag -->
<script src="./dist/index.js">
  • Usage: Typescript & Javascript
import heic2any from "heic2any";
// or
const heic2any = require("heic2any");
// skip the lines above if you're not using a module bundler
// and would prefer to include a <script> tag in your HTML file

// this is our heif image file
const HEICBlobFile = new Blob();

heic2any({
	// required: the HEIF blob file
	blob: HEICBlobFile,
	// (optional) MIME type of the target file
	// it can be "image/jpeg", "image/png" or "image/gif"
	// defaults to "image/png"
	toType: "image/jpeg",
	// conversion quality
	// a number ranging from 0 to 1
	quality: 0.8
});

This project is heavily based on the excellent libheif by struktur.

heic2any's People

Contributors

alselawi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.