Gathering detailed insights and metrics for jpegorientation
Gathering detailed insights and metrics for jpegorientation
Gathering detailed insights and metrics for jpegorientation
Gathering detailed insights and metrics for jpegorientation
Tool for getting, setting and rotating jpeg images based on Exif rotation information
npm install jpegorientation
Typescript
Module System
Min. Node Version
NPM Version
C++ (87.81%)
JavaScript (11.05%)
Python (1.13%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
7 Stars
9 Commits
1 Forks
1 Watchers
1 Branches
3 Contributors
Updated on Mar 15, 2018
Latest Version
1.0.2
Package Id
jpegorientation@1.0.2
Size
4.94 kB
NPM Version
1.4.3
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
1
Tool for querying, setting and correcting orientation of JPEG files in node.js.
Get the orientation for an image file:
var jpeg = require("jpegorientation");
jpeg.orientation("IMG_0001.jpg", function(err, orientation) {
console.log(jpeg.orientationToString(orientation)); // --> "TopLeft"
}
Auto Rotate an image:
var jpeg = require("jpegorientation");
jpeg.autoRotate("IMG_0001.jpg", function(err) {
}
Manually set the Exif data for a files orientation (does not actually rotate, just modifies the metadata):
var jpeg = require("jpegorientation");
jpeg.orientation("IMG_0001.jpg", 5, function(err, orientation) {
}
npm install jpegorientation
Gets or sets the "Orientation" flag in the specified JPEG's EXIF data section. This requires the EXIF section to be defined in the JPEG files.
jpeg.orientation(source, [newOrientationValue], callback);
note: This does NOT rotate the image, only changes the data in the EXIF header of the image (See autoRotate)
Automatically rotate the image to the correct "TopLeft" (orientation=1) and save the orientation data in the Exif headers.
jpeg.autoRotate(source, destination, callback);
Returns a friendly string describing the orientation. Return value is position for X then Y of the image. (e.g. TopLeft, RightBottom)
jpeg.orientationToString(orientationValue);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/9 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 SAST tool detected
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
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