All notable changes to this project will be documented in this file.
- New function
resizeImage()for resizing images using sharp. - Supports
width,height, andfitoptions. - Prevents enlarging smaller images with
withoutEnlargement: true.
- Enhanced error handling for image operations.
- Minor optimizations in buffer processing.
const resized = await resizeImage('assets/photo.jpg', { width: 800, height: 600 });
await fs.writeFile('assets/photo_resized.jpg', resized);- Initial release of file size formatting utilities.