Gathering detailed insights and metrics for alexcorvi-heic2any
Gathering detailed insights and metrics for alexcorvi-heic2any
npm install alexcorvi-heic2any
Typescript
Module System
Node Version
NPM Version
78
Supply Chain
80
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (44.25%)
HTML (29.83%)
JavaScript (25.93%)
Total Downloads
220,827
Last Day
100
Last Week
499
Last Month
3,145
Last Year
56,116
667 Stars
24 Commits
91 Forks
10 Watching
1 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
alexcorvi-heic2any@0.0.3
Unpacked Size
2.32 MB
Size
597.92 kB
File Count
6
NPM Version
6.13.4
Node Version
12.14.1
Cumulative downloads
Total Downloads
Last day
1,328.6%
100
Compared to previous day
Last week
-32.7%
499
Compared to previous week
Last month
47%
3,145
Compared to previous month
Last year
-57%
56,116
Compared to previous year
Client-side (browser-side, using Javascript) conversion of HEIC/HEIF image files to JPEG, PNG, or GIF.
High Efficiency Image File Format (HEIC) is a new image container format from the developers of MPEG, a popular audio and video compression standard. HEIC will be used by default on new photos on iOS 11, and it’s designed to save you storage space. As it’s a new container format, there will be some incompatibilities along the way, and Apple does a good job at handling most of these. iOS 11 will automatically share HEIC files as the default JPEG format for apps, so you won’t notice anything when you share a photo on Twitter or Instagram. iOS 11 also offers to automatically transfer photos and videos in a compatible format for Mac or PC users, useful if you’re simply plugging your iPhone into your laptop or PC. theverge.com
While developing some web-based application that should be able to handle mobile uploads, I've come across a problem where browsers can not display certain images uploaded from the iPhone, after investigating through the issue, I noticed that that my iPhone was giving a heic
formatted image.
Currently there are zero web browsers that support HEIC photos. Even Apple's latest-greatest version of Safari can't decode HEIC and doesn't recognize the "image/heic" mimetype. A solution that came across my mind is to utilize the benefits of high resolution and low storage of heic images when storing in the server and client-side conversion to JPEG for viewing on the browser.
This library would typically be used for viewing purposes, as currently it's not focusing on copying any metadata from the original heic
file to the output jpeg
, gif
or png
. The development process of this library is focusing on viewing a browser-consumable version of an heic
file, and doing it quickly, asynchronously (using web workers) and accurately. This library would even convert heic
containers that have multiple heic
images into an animated gif
.
However, if you're planning on storing the files (not just viewing them), I'd suggest you look for a server-side tool, or you try to get your hands dirty and contribute to this library and make it capable of storing metadata.
Last but not least, this tool is specifically for the browser environment, it will not work in node environment.
Those are the known issues of the library, pull requests are welcome:
gif
, however when a heic
animation is given (like the stars animation in the demo) library will only take the first shot of the animation.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
50 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More