sharp

Performs NPU-accelerated inference for AI applications.

84|15|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/AIDotNet/MoYuCode --skill sharp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sharp
Source: https://github.com/AIDotNet/MoYuCode/tree/main/skills/tools/sharp
Command: npx skills add https://github.com/AIDotNet/MoYuCode --skill sharp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sharp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for efficient and fast image manipulation, resizing, and format conversion directly within Node.js applications.

Core Features & Use Cases

  • Resizing: Adjust image dimensions with various fitting and positioning options.
  • Format Conversion: Convert between JPEG, PNG, WebP, AVIF, and TIFF.
  • Manipulation: Apply effects like rotation, flipping, blurring, sharpening, and cropping.
  • Use Case: Quickly generate multiple thumbnail sizes for a product image or convert a batch of PNGs to the more efficient WebP format for web use.

Quick Start

Use the sharp skill to resize the image 'input.jpg' to a width of 800 pixels while maintaining the aspect ratio and save it as 'output.jpg'.

Frequently Asked Questions about sharp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resize images in Node.js while maintaining the aspect ratio?

To resize images in Node.js while maintaining the aspect ratio, you can use the sharp library to adjust the width to a specific pixel value and process the binary image stream, saving the output as a new JPEG or PNG file.

What is the best way to convert PNG images to WebP format for web optimization?

The best way to convert PNG images to WebP format for web optimization is using a high-performance Node.js image processing library like sharp, which leverages libvips for efficient format conversion.

Does sharp support modern image formats like AVIF and TIFF?

Yes, sharp supports modern image formats including AVIF and TIFF, alongside JPEG, PNG, and WebP, allowing you to manipulate and convert binary image streams across multiple file types.

How do I generate multiple thumbnail sizes from a single image in Node.js?

You can generate multiple thumbnail sizes from a single image in Node.js by applying sharp's resizing features with various fitting and positioning options to produce distinct output files efficiently.

Can I apply effects like blurring and sharpening during image manipulation in Node.js?

Yes, you can apply effects like blurring and sharpening during image manipulation in Node.js by utilizing sharp's built-in processing capabilities to modify binary image streams directly.

Why use libvips for high-performance image processing in Node.js applications?

Using libvips for high-performance image processing in Node.js applications enables efficient binary stream handling and rapid execution of resizing, format conversion, and manipulation tasks without heavy memory overhead.