You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pyper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyper

The uncomplicated image resizing pipeline.

0.0.1
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Unrelated image of a sandpiper

Pyper

The uncomplicated image resizing pipeline.

 

FeaturesUsageDevelopmentLicense

Features

  • 📄 Supports any image type supported by sharp/libvips
  • 📏 Multiple input rules each with multiple outputs
  • ✳️ Glob input file selection
  • 🚀 Fast resizing with sharp/libvips
  • 👀 Skips already-resized images with a cache for fast subsequent runs

Usage

Usage: pyper [options]

Options:
  -v, --version  output the current version
  --verbose      output debugging
  -h, --help     display help for command

Create a .pyper.json file in the folder you want to run pyper from. Here's one that creates three different versions of each of the images in the images folder.

[
  {
    "input": "images/*",
    "outputs": [
      {
        "path": "output/{basepath}/{filename}-35{extension}",
        "width": 35,
        "height": 35
      },
      {
        "path": "output/{basepath}/{filename}-100.webp",
        "format": "webp",
        "width": 100,
        "height": 100
      },
      {
        "path": "output/{basepath}/{filename}-100{extension}",
        "width": 100,
        "height": 100,
        "options": {
          "quality": 10
        }
      }
    ]
  }
]

Development

Pyper is run as the CLI command pyper.

npm install
npm link

You should then be able to run this in another folder:

pyper

License

MIT

FAQs

Package last updated on 29 May 2021

Did you know?

Socket

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