Socket
Socket
Sign inDemoInstall

lowly

Package Overview
Dependencies
138
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lowly

Build low quality images


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
17.8 MB
Created
Weekly downloads
 

Readme

Source

lowly

Travis Coveralls npm (scoped) XO code style

Build low quality images.

Create low quality images to improve the load time of your page, and fetch the real images asynchronously. You can do that with the help of lowly and progressively.

Table of Contents

Install

This project uses node and npm. Go check them out if you don't have them locally installed.

$ npm install lowly

Usage

const fs = require('fs')
const lowly = require('lowly')

const image = fs.readFileSync('image.jpg')

lowly(image)
  .then(buff => {
    fs.writeFileSync('image-lowly.jpg', buff)
  })

CLI

$ lowly --help

  Usage
      $ lowly <input>

  Examples
    $ lowly image.jpg
    $ lowly images/**/* image.jpg

API

lowly

Resize a image preserving the aspect ratio.

Parameters

  • image Buffer the buffer of a image return by fs.readFile.

Returns Promise that resolves a buffer of the image with low quality.

License

MIT License © Thiago Santos

Keywords

FAQs

Last updated on 24 Mar 2017

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