Socket
Socket
Sign inDemoInstall

heic-jpg-exif

Package Overview
Dependencies
8
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    heic-jpg-exif

Conversion extending heic-convert to retain essential EXIF metadata


Version published
Weekly downloads
27
decreased by-47.06%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

heic-jpg-exif

ci npm-downloads npm-version

Conversion from HEIC to JPG while retaining essential EXIF metadata

Install

npm install heic-jpg-exif

Usage (NodeJS)

const convert = require('heic-jpg-exif');

Convert an HEIC image file to a JPEG file at maximum quality (1)

await convert('input.HEIC', 'output.jpg', 1);

Convert an HEIC buffer to a JPEG buffer

const inBuffer = fs.readFileSync('input.HEIC');
const outBuffer = await convert(inBuffer);

Background

The HEIC image is first converted to a JPG with heic-convert and then complemented with the EXIF metadata of the source image using exifr and piexif-ts.

See also

Keywords

FAQs

Last updated on 13 Mar 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