Gathering detailed insights and metrics for piexif
Gathering detailed insights and metrics for piexif
Gathering detailed insights and metrics for piexif
Gathering detailed insights and metrics for piexif
npm install piexif
Typescript
Module System
Node Version
NPM Version
TypeScript (87.55%)
JavaScript (12.45%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
320 Commits
1 Forks
4 Branches
1 Contributors
Updated on Mar 10, 2024
Latest Version
0.0.2
Package Id
piexif@0.0.2
Unpacked Size
243.51 kB
Size
40.35 kB
File Count
12
NPM Version
6.14.8
Node Version
12.19.0
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
This repository is forked from piexif-ts which is based off of piexifjs.
Add Error ByPass and reset Orientation functionality to the Typescript version piexif-ts of the original piexifjs. See original documentation for how to use it.
npm i piexif
It's very similar to the javascript library, but with some slight differences. Below is an example of how you can use this:
1import piexif, { IExif, IExifElement, TagValues } from 'piexif'; 2 3var file = evt.target.files[0]; 4 5var zeroth: IExifElement = {}; 6var exif: IExifElement = {}; 7var gps: IExifElement = {}; 8zeroth[TagValues.ImageIFD.Make] = "Make"; 9zeroth[TagValues.ImageIFD.XResolution] = [777, 1]; 10zeroth[TagValues.ImageIFD.YResolution] = [777, 1]; 11zeroth[TagValues.ImageIFD.Software] = "Piexifjs"; 12exif[TagValues.ExifIFD.DateTimeOriginal] = "2010:10:10 10:10:10"; 13exif[TagValues.ExifIFD.LensMake] = "LensMake"; 14exif[TagValues.ExifIFD.Sharpness] = 777; 15exif[TagValues.ExifIFD.LensSpecification] = [[1, 1], [1, 1], [1, 1], [1, 1]]; 16gps[TagValues.GPSIFD.GPSVersionID] = [7, 7, 7, 7]; 17gps[TagValues.GPSIFD.GPSDateStamp] = "1999:99:99 99:99:99"; 18var exifObj: IExif = {"0th":zeroth, "Exif":exif, "GPS":gps}; 19var exifStr = piexif.dump(exifObj); 20 21var reader = new FileReader(); 22reader.onload = function(e) { 23 var inserted = piexif.insert(exifStr, e.target.result); 24 25 var image = new Image(); 26 image.src = inserted; 27 image.width = 200; 28 var el = $("<div></div>").append(image); 29 $("#resized").prepend(el); 30 31}; 32reader.readAsDataURL(file);
Note also that in tsconfig.json
the following setting needs to be set to commonjs
for some reason. I am not sure why, so if someone could explain me, please do.
1{ 2... 3 "compilerOptions": { 4 "module": "commonjs", 5 ... 6 } 7}
No dependency. Piexifjs just needs standard JavaScript environment.
Both client-side and server-side. Piexifjs is transpiled as Universal Module Definition(https://github.com/umdjs/umd).
Give me details. Environment, code, input, output. I can do nothing with abstract.
This software is released under the MIT License, see LICENSE.txt.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
60 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