Description
The Advanced GIF Optimizer is a powerful SharePoint Framework (SPFx) web part that allows users to compress, resize, and optimize GIF animations entirely within their browser. By eliminating the need for server-side processing or third-party APIs, this solution guarantees maximum data privacy, zero latency during uploads, and zero API cost.
Built using React, Fluent UI, and native Web Workers, the optimizer provides a highly interactive and responsive application right inside SharePoint.
Key Features
- 100% Client-Side Processing: All decoding and encoding happen locally on the user’s machine using `ArrayBuffer` data, keeping files completely secure.
- Color Quantization (Lossy Compression): Reduces the color palette dynamically using the NeuQuant neural-net quantization algorithm to achieve massive file size reductions.
- Frame Dropping Mechanism: Enables users to mathematically skip frames (e.g. keep 1 in every 2 frames) to significantly reduce weight while preserving the overall animation flow.
- Canvas Resizing: Built-in scale slider changes GIF dimensions via native HTML5 Canvas `<canvas>` context, allowing proportionate physical size reduction.
- Responsive Web Workers: Heavily offloads CPU-intensive LZW encoding tasks to a dedicated Web Worker via a dynamically loaded memory Blob (`URL.createObjectURL`), preventing the SharePoint page from freezing or stuttering.
- Live Preview & Stats: Instant visual comparison between the original and optimized GIF, including real-time byte calculation to show exact space saved natively in memory.
- Fluent UI UX: Native SharePoint look and feel using `@fluentui/react` controls like sliders, progress indicators, and buttons.
There are no reviews yet.