Gathering detailed insights and metrics for exif-rotate-js
Gathering detailed insights and metrics for exif-rotate-js
Gathering detailed insights and metrics for exif-rotate-js
Gathering detailed insights and metrics for exif-rotate-js
npm install exif-rotate-js
Typescript
Module System
Node Version
NPM Version
TypeScript (69.66%)
JavaScript (30.34%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
13 Stars
1,033 Commits
5 Forks
11 Branches
4 Contributors
Updated on Jan 06, 2025
Latest Version
1.5.0
Package Id
exif-rotate-js@1.5.0
Unpacked Size
33.00 kB
Size
7.00 kB
File Count
38
NPM Version
10.2.3
Node Version
18.19.0
Published on
Jan 09, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
When you use input file, you can get base64 string as array without worrying about orientation
of exif.
$ npm install exif-rotate-js
1const data = await getBase64Strings(files, {maxSize, type, quality}))
["data:image/jpeg;base64,/9j/4AAQS..."]
files
: input target files. User can select multiple files.maxSize = 720
: canvas max size. When image's width is greater than height, maxSize
applies to width. And vice versa.type = 'image/jpeg'
: the mime type of the generated image. Any mime type supported by HTMLCanvasElement.toDataURL() is supported.quality (optional)
: a number between 0
and 1
indicating the image quality to use for image formats that use lossy compression such as image/jpeg
and image/webp
. If this argument is anything else, the default value for image quality is used. As per the spec, the default (undefined
) value will use 0.92
.1import { getBase64Strings } from 'exif-rotate-js'; 2 3const elem = document.getElementById('fileImage'); 4 5if (elem) { 6 elem.onchange = async (e) => { 7 if (!e.target) return; 8 const data = await getBase64Strings(e.target.files, { maxSize: 1024 }); 9 console.log(data); // ["data:image/jpeg;base64,/9j/4AAQS..."] as type of Array 10 }; 11}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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