sharp

Resize, convert, and optimize images with the Sharp Node.js library.

4|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/mgd34msu/goodvibes-gemini --skill sharp-mgd34msu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sharp
Source: https://github.com/mgd34msu/goodvibes-gemini/tree/main/skills/sharp
Command: npx skills add https://github.com/mgd34msu/goodvibes-gemini --skill sharp-mgd34msu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a robust and efficient way to process images directly within your Node.js applications, optimizing them for web or other uses.

Core Features & Use Cases

  • Resizing and Conversion: Easily resize images to specific dimensions or fit within constraints, and convert between various formats like JPEG, PNG, WebP, and AVIF.
  • Optimization: Apply various optimizations like compression, sharpening, and color adjustments.
  • Use Case: You need to generate multiple thumbnail sizes for user-uploaded images and convert them all to WebP for faster loading times on your website.

Quick Start

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

Frequently Asked Questions about sharp

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

FAQPage Schema
How do I resize images and convert them to WebP or AVIF in Node.js?

To resize images and convert them to WebP or AVIF in Node.js, you can use the sharp library to process input files, apply dimension constraints, and output optimized modern formats for faster web loading.

What's the best way to optimize and compress user-uploaded images server-side?

The best way to optimize and compress user-uploaded images server-side is using a high-performance Node.js image processing pipeline to apply compression, sharpening, and color adjustments before saving.

Can I generate multiple thumbnail sizes from a single image upload in Node.js?

Yes, you can generate multiple thumbnail sizes from a single image upload in Node.js by passing the uploaded file through sharp to resize it into various constrained dimensions for your application needs.

Does the sharp Node.js library support JPEG, PNG, WebP, and AVIF format conversion?

Yes, the sharp Node.js library supports JPEG, PNG, WebP, and AVIF format conversion, allowing you to easily convert between these formats during your image resizing and optimization workflows.

Do I need to install the sharp npm package to handle image processing in my application?

Yes, you need to install the sharp npm package to handle image processing in your application, as it provides the required high-performance dependencies for resizing, converting, and optimizing images.

Are there limitations when processing very large images with sharp in Node.js?

Processing very large images with sharp in Node.js may be limited by available server memory, though the library is designed for high performance and efficiently handles resizing and optimization for standard web pipelines.