@imageproc/core
v0.0.15
Published
@imageproc/core
Downloads
6
Readme
@imageproc/core
Image processing core module
Usage
npm install @imageproc/core
import * as imageproc from "@imageproc/core";
(async () => {
const proc = new imageproc.ImageProcessorSharp();
const sourceBuf = fs.readFileSync("image.png");
const buf = await proc.resizeAspectFit(sourceBuf, {
...
});
fs.writeFileSync("generated.png", buf);
})();
ImageProcessor usage
see: ImageProcessor.ts
ImageProcessor implementation
- ImageProcessorSharp
- (Feature Support) ImageProcessorMagick