compressing-media

Compress images and videos client-side in web applications.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/ionmidori/SYDBioedilizia --skill compressing-media
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compressing-media
Source: https://github.com/ionmidori/SYDBioedilizia/tree/main/.gemini/skills/compressing-media
Command: npx skills add https://github.com/ionmidori/SYDBioedilizia --skill compressing-media

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires browser-image-compression, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need to reduce the file size of images and videos before uploading, thereby lowering storage costs and improving application performance, especially for users on limited bandwidth.

Core Features & Use Cases

  • Client-side Image Compression: Utilizes browser-image-compression to resize and reformat images (e.g., to WebP) in the browser.
  • Video Optimization Guidance: Provides patterns for checking hardware video encoding support and suggests alternatives like validation or server-side processing.
  • Use Case: When a user uploads a high-resolution photo to a profile page, this skill automatically compresses it to a manageable size (e.g., under 1MB) without significant quality loss, ensuring a faster upload and reduced server storage.

Quick Start

Compress the provided image file using the compressing-media skill with a target size of 1MB and WebP format.

Frequently Asked Questions about compressing-media

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

FAQPage Schema
How do I compress images in the browser before uploading them to a server?

Client-side image compression reduces file size before upload by utilizing the browser-image-compression library to resize and reformat images directly in the browser. This lowers storage costs and improves transfer speeds for web applications.

What is the best way to optimize large media uploads for users on limited bandwidth?

Optimizing media uploads for limited bandwidth involves reducing file sizes on the client side before transfer. This skill compresses images to targets like under 1MB without significant quality loss, ensuring faster uploads and an improved user experience.

Can I convert images to WebP format during client-side compression?

Yes, you can convert images to WebP format during client-side compression. The skill leverages browser-image-compression to resize and reformat images directly in the browser, optimizing file uploads and reducing server storage requirements.

How does client-side video optimization work in web applications?

Client-side video optimization works by providing patterns for checking hardware video encoding support. It suggests using WebAssembly or native APIs for browser compression, and offers alternatives like validation or server-side processing when hardware support is unavailable.

When should I not use browser-based media compression for file uploads?

You should avoid browser-based media compression when hardware video encoding support is unavailable or insufficient. In these edge cases, the skill recommends falling back to file validation or shifting the media optimization processing to the server side.