Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
exif-auto-rotate
Advanced tools
`exif-auto-rotate` is a module that helps you for applying the right orientation to JPEG images, based on its EXIF tag. It applies the right orientation to a JPEG image. Resets to orientation 1 from all orientation codes. It returns of new image's base64
exif-auto-rotate
is a module that helps you for applying the right orientation to JPEG images, based on its EXIF tag.
<Image>
component.Install the package:
npm i exif-auto-rotate
or
yarn add exif-auto-rotate
import Rotator from 'exif-auto-rotate';
// sync
Rotator.createRotatedImage(
file, // the file of the new image that can now be uploaded.
outputType // the output type of the new image.
responseUriFunc, // the callBack function of the new image URI
);
// async
Rotator.createRotatedImageAsync(
file, // the file of the new image that can now be uploaded.
outputType // the output type of the new image.
);
// sync
Rotator.createRotatedImage(file, "base64", (uri) => {
console.log(uri);
});
// async
try {
const file = event.target.files[0];
const uri = Rotator.createRotatedImageAsync(file, "base64");
console.log(uri);
} catch (err) {
console.log(err);
}
Option | Description | Type | Required |
---|---|---|---|
file | Path of image file | object | Yes |
outputType | Can be either base64 or blob.(Default type is base64) | string | No |
responseUriFunc | Callback function of URI. Returns URI of rotated image's base64 or Blob format. ex: uri => {console.log(uri)}); | function | Yes (sync only) |
Contributions of any kind welcome!
Pablo Suarez 🚧 💻 | Stephan Bijzitter 🚧 💻 |
FAQs
`exif-auto-rotate` is a module that helps you for applying the right orientation to JPEG images, based on its EXIF tag. It applies the right orientation to a JPEG image. Resets to orientation 1 from all orientation codes. It returns of new image's base64
The npm package exif-auto-rotate receives a total of 1,157 weekly downloads. As such, exif-auto-rotate popularity was classified as popular.
We found that exif-auto-rotate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.