Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

heic-to-srgb

Latest version: v0.1.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: akkki007
0 Stars
0 Forks
2 Versions
TypeScript Repo language

Scan summary

heic-to-srgb was last scanned on 29 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 29 Nov 2026 No rules fired
0.0.0-stage 29 Nov 2026 Not shown

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

heic-to-srgb

Open HEIC/HEIF photos (the usual iPhone format) in the browser. Photos never leave the device.

It uses heic-to to decode photos, and adds:

  • Correct colours: heic-to drops the colour profile, which makes Display P3 photos look dull. This converts them to sRGB. Other wide-colour profiles aren't converted.
  • The date taken, for sorting photos.
  • Less memory use: photos are converted one at a time.
  • Smaller downloads: it tries the browser's own decoder first. The converter (about 0.8 MB gzipped) only loads when needed, if your bundler supports dynamic import().

Use

npm install heic-to-srgb
import { isHeic, heicToJpeg, readHeicDate, HeicLoadError } from 'heic-to-srgb';

if (await isHeic(file)) {
  try {
    const jpeg = await heicToJpeg(file, { quality: 0.92, maxEdge: 4200 });
    const takenAt = await readHeicDate(file); // milliseconds, or undefined
  } catch (e) {
    if (e instanceof HeicLoadError) {
      // The converter couldn't be downloaded. Ask the user to check their connection and refresh.
    }
  }
}
Function Returns
isHeic(file) Whether the file's contents are HEIC/HEIF, whatever its name or type
heicToJpeg(file, { quality, maxEdge, timeoutMs }) An sRGB JPEG Blob, without metadata
decodeHeic(file, { timeoutMs }) An ImageBitmap; call close() when you've finished with it
readHeicDate(file) The camera's clock time as if it were UTC, in milliseconds, or undefined

Good to know

  • It only works in browsers, on the main thread. It needs a bundler such as Vite.
  • If your site has a Content Security Policy, allow worker-src blob:. It doesn't need unsafe-eval or wasm-unsafe-eval.
  • If conversion times out, it may keep running in the background.
  • Very large photos can run out of memory on some phones.
  • In file pickers, listing HEIC in accept can make Safari 17+ turn JPGs into HEIC.

Licences

This package's own code is MIT licensed.

heic-to is a separate dependency under LGPL-3.0 and includes libheif. It decodes HEVC, which may need a patent licence. Check both before using this in a product.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm heic-to-srgb

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229