
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
cronshot-imagemagick
Advanced tools
Cronshot middleware to manipulate and save images with ImageMagick via gm
CronShot middleware to manipulate and save images with ImageMagick via gm
npm install cronshot-imagemagick
CronShot uses:
Install CronShot
npm install cronshot
Install ImageMagick
brew update && brew install imagemagick
var cronshot = require('cronshot'),
middleware = {
'imagemagick': require('cronshot-imagemagick')
};
// Image Magick Example
// --------------------
// Takes a screenshot of sports.yahoo.com,
// and converts the screenshot to be a transparent image using Image Magick
// Image Magick example
cronshot.startCapturing({
// The webpage URL that you would like to take a screenshot of
'url': 'http://sports.yahoo.com',
// The local path where you would like to save the image
'path': __dirname,
// Only takes one screenshot
'cronPattern': false,
// What middleware functions to use each time a screenshot is taken
'saveMiddleware': [{
// Function that does all the Image Magick stuff
'middleware': middleware.imagemagick,
'options': {
'gmCommands': [{
'method': 'trim',
'args': []
}, {
'method': 'transparent',
'args': ['#FFFFFF']
}]
}
}]
}, function(err) {
// optional callback function once all screenshots have been taken
});
Note: All methods supported by gm can be used
{
// The path where the screenshot will be saved
'path': '',
// The image name used to save the screenshot
'imageName': '',
// The ImageMagick methods that you would like to be used via the gm node module
'gmCommands': []
}
Please send all PR's to the dev
branch.
If your PR is a code change:
npm install
src/modules
directory.tests/unit/cronshot-imagemagick.js
.npm test
.CronShot-ImageMagick would not have been possible without the help/inspiration of the following libraries/awesome people:
FAQs
Cronshot middleware to manipulate and save images with ImageMagick via gm
The npm package cronshot-imagemagick receives a total of 1 weekly downloads. As such, cronshot-imagemagick popularity was classified as not popular.
We found that cronshot-imagemagick 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.