Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 681 Bytes

File metadata and controls

24 lines (18 loc) · 681 Bytes

📜 Changelog

All notable changes to this project will be documented in this file.

[1.0.8] - 2025-10-14

Added

  • New function resizeImage() for resizing images using sharp.
  • Supports width, height, and fit options.
  • Prevents enlarging smaller images with withoutEnlargement: true.

Improved

  • Enhanced error handling for image operations.
  • Minor optimizations in buffer processing.

Example Usage

const resized = await resizeImage('assets/photo.jpg', { width: 800, height: 600 });
await fs.writeFile('assets/photo_resized.jpg', resized);

[1.0.7] - Previous Version

  • Initial release of file size formatting utilities.