Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
im-metadata
Advanced tools
Retrieve image metadata as a JSON object using ImageMagick's identify
command.
npm install im-metadata --save
var metadata = require('im-metadata');
src
, object opts
, function callback
)Return metadata object for a given src
image.
src
- path to the image on diskopts
- metadata parsing options
exif
- return exif data or not (default false
)autoOrient
- auto-orient height/width (default false
)timeout
- command timeout length (default 5000
)callback
- callback function (Error error
, object data
)
error
- error output if command faileddata
- parsed metadata objectReturns an object
with parsed metada:
path
- original image pathname
- original image namesize
- image file size in bytes (ex. 4504682
)format
- image format (JPEG
, PNG
, TIFF
etc.)colorspace
- image colorspace (RGB
, CMYK
etc.)height
- image pixel heightwidth
- image pixel widthorientation
- image orientationmetadata('/path/to/image.jpg', {exif: true}, function(error, metadata) {
if (error) { console.error(error); }
console.log(metadata);
console.log(metadata.exif);
});
FAQs
Retrieve image metadata using ImageMagick's identify command
We found that im-metadata 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.