Gathering detailed insights and metrics for deskfy-piexifjs
Gathering detailed insights and metrics for deskfy-piexifjs
Gathering detailed insights and metrics for deskfy-piexifjs
Gathering detailed insights and metrics for deskfy-piexifjs
Read and modify exif in client-side or server-side JavaScript.
npm install deskfy-piexifjs
Typescript
Module System
Node Version
NPM Version
JavaScript (99.76%)
Dockerfile (0.24%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
132 Commits
4 Branches
2 Contributors
Updated on Mar 04, 2020
Latest Version
1.5.3
Package Id
deskfy-piexifjs@1.5.3
Unpacked Size
80.23 kB
Size
14.52 kB
File Count
7
NPM Version
6.4.1
Node Version
10.15.1
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
No dependencies detected.
This is exactly the same as version 1.0.4 of hMatoba's piexifjs https://github.com/hMatoba/piexifjs, but returning the input image itself when it is an unsupported type, instead of throwing an exception
Thanks to hMotoba for the hard work!
var exifObj = piexif.load(jpegData)
- Get exif data as object. jpegData must be a string that starts with "\data:image/jpeg;base64,"(DataURL), "\xff\xd8", or "Exif".var exifStr = piexif.dump(exifObj)
- Get exif as string to insert into JPEG.piexif.insert(exifStr, jpegData)
- Insert exif into JPEG. If jpegData is DataURL, returns JPEG as DataURL. Else if jpegData is binary as string, returns JPEG as binary as string.piexif.remove(jpegData)
- Remove exif from JPEG. If jpegData is DataURL, returns JPEG as DataURL. Else if jpegData is binary as string, returns JPEG as binary as string.Use with File API or Canvas API.
.. code:: html
<input type="file" id="files" />
<script src="/js/piexif.js" />
<script>
function handleFileSelect(evt) {
var file = evt.target.files[0];
var zeroth = {};
var exif = {};
var gps = {};
zeroth[piexif.ImageIFD.Make] = "Make";
zeroth[piexif.ImageIFD.XResolution] = [777, 1];
zeroth[piexif.ImageIFD.YResolution] = [777, 1];
zeroth[piexif.ImageIFD.Software] = "Piexifjs";
exif[piexif.ExifIFD.DateTimeOriginal] = "2010:10:10 10:10:10";
exif[piexif.ExifIFD.LensMake] = "LensMake";
exif[piexif.ExifIFD.Sharpness] = 777;
exif[piexif.ExifIFD.LensSpecification] = [[1, 1], [1, 1], [1, 1], [1, 1]];
gps[piexif.GPSIFD.GPSVersionID] = [7, 7, 7, 7];
gps[piexif.GPSIFD.GPSDateStamp] = "1999:99:99 99:99:99";
var exifObj = {"0th":zeroth, "Exif":exif, "GPS":gps};
var exifStr = piexif.dump(exifObj);
var reader = new FileReader();
reader.onload = function(e) {
var inserted = piexif.insert(exifStr, e.target.result);
var image = new Image();
image.src = inserted;
image.width = 200;
var el = $("<div></div>").append(image);
$("#resized").prepend(el);
};
reader.readAsDataURL(file);
}
document.getElementById('files').addEventListener('change', handleFileSelect, false);
</script>
No dependency. Piexifjs just needs standard JavaScript environment.
Both client-side and server-side. Standard browsers(Tested on IE11, Opera28, and PhantomJS) and Node.js.
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 binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
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
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
dependency not pinned by hash detected -- score normalized to 0
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