All Projects → maxim-kolesnikov → React Native Heic Converter

maxim-kolesnikov / React Native Heic Converter

Licence: mit
Convert your HEIC files with React Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Heic Converter

Marvinj
Javascript Image Processing Framework based on Marvin Framework
Stars: ✭ 213 (+395.35%)
Mutual labels:  image-processing, javascript-library
Minisauras
An open-source CI/CD automation tool based on GitHub Actions that pulls all the JavaScript and CSS files from your base branch, minify them and creates a pull-request with a new branch.
Stars: ✭ 40 (-6.98%)
Mutual labels:  javascript-library
Leafletpano
A simple tool which tiles large images to publish them for web and mobile
Stars: ✭ 34 (-20.93%)
Mutual labels:  image-processing
Zero Fux
No Flux plus no Redux equals ZeroFux. A stateless unidirectional data flow implemented with Custom Events.
Stars: ✭ 37 (-13.95%)
Mutual labels:  javascript-library
Imagene
A General Purpose Image Manipulation Tool
Stars: ✭ 36 (-16.28%)
Mutual labels:  image-processing
Svg World Map
🗺 A JavaScript library to easily integrate one or more SVG world maps with all nations (countries) and second-level political subdivisions (countries, provinces, states).
Stars: ✭ 38 (-11.63%)
Mutual labels:  javascript-library
Google Images Download
Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!
Stars: ✭ 7,815 (+18074.42%)
Mutual labels:  image-processing
Computervision Recipes
Best Practices, code samples, and documentation for Computer Vision.
Stars: ✭ 8,214 (+19002.33%)
Mutual labels:  image-processing
Rapiddraw
A simple artificial intelligence experiment to find out if mobile neural networks can recognize human-made doodles
Stars: ✭ 39 (-9.3%)
Mutual labels:  image-processing
Imagemin Module
Automatically optimize (compress) all images used in Nuxt.js
Stars: ✭ 37 (-13.95%)
Mutual labels:  image-processing
Extensionsindex
Slicer extensions index
Stars: ✭ 36 (-16.28%)
Mutual labels:  image-processing
Instabyte
Clone of Instagram made with React Native
Stars: ✭ 36 (-16.28%)
Mutual labels:  reactnative
Openexr
The OpenEXR project provides the specification and reference implementation of the EXR file format, the professional-grade image storage format of the motion picture industry.
Stars: ✭ 992 (+2206.98%)
Mutual labels:  image-processing
Image Processing
Image Processing with Python
Stars: ✭ 34 (-20.93%)
Mutual labels:  image-processing
Grabcutweb
Full web grabcut example using opencvjs
Stars: ✭ 40 (-6.98%)
Mutual labels:  image-processing
Albumentations
Fast image augmentation library and an easy-to-use wrapper around other libraries. Documentation: https://albumentations.ai/docs/ Paper about the library: https://www.mdpi.com/2078-2489/11/2/125
Stars: ✭ 9,353 (+21651.16%)
Mutual labels:  image-processing
Opencv Tutorials
Tutorials for learning OpenCV in Python from Scratch
Stars: ✭ 36 (-16.28%)
Mutual labels:  image-processing
Smartcrop.php
smartcrop implementation in PHP
Stars: ✭ 37 (-13.95%)
Mutual labels:  image-processing
Tensorflow Lite Rest Server
Expose tensorflow-lite models via a rest API
Stars: ✭ 43 (+0%)
Mutual labels:  image-processing
Redash
Tiny functional programming suite for JavaScript.
Stars: ✭ 40 (-6.98%)
Mutual labels:  javascript-library

react-native-heic-converter

npm version npm MIT Platform - iOS issues

Contribution

Issues are welcome. Please add a code snippet. Quickest way to solve issue is to reproduce it on one of the examples in DEMO.

Pull requests are welcome. If you want to change API or making something big better to create issue and discuss it first. Before submiting PR please run eslint . Also all eslint fixes are welcome.

Getting started

$ npm install react-native-heic-converter --save

Features

  • [x] Returns the data for the specified image in JPEG format.
  • [x] Returns the data for the specified image in PNG format.
  • [x] Returns the data for the encoded image in base64 format.
  • [x] Value of compression quality
  • [x] Support representation of an image in the Photos library.

Mostly automatic installation

$ react-native link react-native-heic-converter

Manual installation

iOS (via CocoaPods)

Add the following lines to your build targets in your Podfile

pod 'react-native-heic-converter', :path => '../node_modules/react-native-heic-converter'

Then run pod install

iOS (without CocoaPods)
  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-heic-converter and add RNHeicConverter.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNHeicConverter.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Static Methods

RNHeicConverter.convert(options{}).then(result{})

Options

Property Type Default Description
path string Path to your .HEIC file
quality number 1 Set quality 0 to 1, for jpg extension only
extension string jpg File extension that you want get when convert: jpg or png or base64

Usage

import RNHeicConverter from 'react-native-heic-converter';

RNHeicConverter
	.convert({ // options
		path: '/path/to/file.heic',
	})
	.then((result) => {
		console.log(result); // { success: true, path: "path/to/jpg", error, base64, }
	});

Please have a look at my example usage.

CHANGELOG

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].