New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

libwebp-static

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libwebp-static

libwebp binaries for macOS, Linux and Windows

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

libwebp-static

NPM Version NPM Downloads License

Static libwebp binaries for macOS, Linux, and Windows.

A Node.js package that provides precompiled static binaries for all tools from Google's libwebp library, enabling WebP image conversion and manipulation without requiring manual installation or compilation.

✨ Features

  • 🚀 Zero compilation - No need to build libwebp from source
  • 🌍 Cross-platform - Works on macOS (x64/ARM64), Linux (x64/ARM64), and Windows (x64)
  • 📦 Complete toolset - Includes all libwebp command-line tools
  • Automatic installation - Binaries are downloaded during npm install
  • 🔧 Easy integration - Simple Node.js API for accessing binary paths

🛠️ Available Tools

This package includes the following libwebp command-line tools:

ToolDescription
cwebpCompress images to WebP format
dwebpDecompress WebP images to PNG/PPM/PAM/PGM/BMP
gif2webpConvert GIF animations to animated WebP
img2webpCreate animated WebP from image sequence
webpmuxMux/demux tool for WebP images
webpinfoDisplay info about WebP images
anim_diffCompare animated WebP images
anim_dumpDump frames from animated WebP
get_distoCompute distortion metrics
vwebpSimple WebP viewer (GUI)
webp_qualityPrint quality estimates

🖥️ Platform Support

PlatformArchitectureStatus
macOSx64 (Intel)
macOSARM64 (Apple Silicon)
Linuxx64
LinuxARM64
Windowsx64

Sources of the binaries

The binaries download script downloads binaries from these locations:

The script extracts build information and (when possible) the license file from the downloaded package or the distribution server. Please consult the official WebP project for exact source versions.

📦 Installation

Install via npm:

npm install libwebp-static

Requirements

  • Node.js 12 or higher
  • Internet connection (for downloading binaries during installation)

Platform-specific requirements

  • macOS: No additional requirements
  • Linux: tar and gzip utilities (usually pre-installed)
  • Windows: No additional requirements

Available Binary Paths

All tools are available as properties of the exported object:

  • webpTools.cwebp - WebP encoder
  • webpTools.dwebp - WebP decoder
  • webpTools.gif2webp - GIF to WebP converter
  • webpTools.img2webp - Image sequence to WebP converter
  • webpTools.webpmux - WebP multiplexer
  • webpTools.webpinfo - WebP information tool
  • webpTools.anim_diff - Animation comparison tool
  • webpTools.anim_dump - Animation frame extractor
  • webpTools.get_disto - Distortion calculation tool
  • webpTools.vwebp - WebP viewer (GUI)
  • webpTools.webp_quality - Quality estimation tool

Getting Help

📄 License

This project is licensed under the GPL-3.0-or-later License - see the LICENSE file for details.

The libwebp library is licensed under a separate license. For more information, please refer to the libwebp license.

🙏 Acknowledgments

  • Google WebP team for the excellent WebP library
  • Contributors and users of this package
  • The Node.js community for inspiration and best practices

Keywords

webp

FAQs

Package last updated on 01 Sep 2025

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