![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A wrapper for gm and other image processing commands that provides a chainable API with async pipeline of commands.
A wrapper for a few gm methods that just provides a convenient and consistent API.
It is built to chain all transformations you need and execute them once you call the exec
method, returning the modified image as a Stream
.
var oenyi = require('oenyi');
var image = oenyi('/path/to/image');
image.toJPG();
image.compress({quality: 90});
Keeps aspect ratio and just scales up or down the image until it fits the provided sizes.
image.resize({width: 500, height: 255, method: 'contain'});
Crops and resizes the image to fit the provided sizes and the aspect ratio given by such sizes.
image.resize({width: 500, height: 500, method: 'cover'});
image.exec(function(err, imageBuffer) {
// Your code here.
});
var wstream = require('fs').createWriteStream('/path/to/destiny');
image.pipe(wstream);
Use method chaining to apply many transformations to a single image. Get the image buffer at the end and do with it whatever you want.
var oenyi = require('oenyi');
var fs = require('fs');
oenyi('/path/to/image')
.toJPG()
.compress({quality: 80})
.resize({width: 500, height: 500, method: 'cover'})
.exec(function(err, imageBuffer) {
if (err) return console.error(err);
fs.writeFile('/path/to/destiny', imageBuffer);
});
FAQs
A wrapper for image processing commands that provides a chainable API with asynchronous pipeline of commands.
The npm package oenyi receives a total of 3 weekly downloads. As such, oenyi popularity was classified as not popular.
We found that oenyi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.