Socket
Socket
Sign inDemoInstall

@coffeekraken/s-images-builder

Package Overview
Dependencies
16
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-images-builder

Images builder that let you compress and create multiple versions of your images with ease. Support webp generation.


Version published
Weekly downloads
384
increased by81.99%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

{{#> layout-readme }}

SImagesBuilder

This package expose a simple SImagesBuilder class that lets you build, compress, resize, etc... your images.

Features

This builder class gives you some features like:

  • Set a target quality
  • Specify max width and height
  • Generate .webp version of each images
  • Specify multiple resolutions like [1,2,3] that will generate multiple files for each images
  • Specify specific parameters for somr sub-directory, etc...
  • And more...

Usage

To make use of this builder, you have two choices:

Using the sugar CLI

Simply call this command:

sugar images.build [arguments]

For arguments documentation, simple use:

sugar images.build -h
Using the API

Here's a simple usage example

import __SImagesBuilder from '@coffeekraken/s-images-builder';
const builder = new __SImagesBuilder();
await builder.build({});
Build parameters

{{> interface namespace='@coffeekraken.s-images-builder.node.interface.SImagesBuilderBuildParamsInterface' }}

Settings

{{> interface namespace='@coffeekraken.s-images-builder.node.interface.SImagesBuilderSettingsInterface' }}

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc