1.5 KiB
1.5 KiB
Changelog
[1.2.0] - 2025-01-02
Added
- Quality parameter support for image compression
- New
quality
option (1-100) in IAssetVariation interface for controlling compression quality - Quality control implementation for both Sharp and Jimp modes
- Support for quality settings on all lossy formats (JPEG, WebP, AVIF)
- Enhanced documentation with quality control examples
Changed
- Jimp mode now uses fall-through pattern in format switch for cleaner code
- Console logging when Jimp falls back to JPEG for unsupported formats (WebP, AVIF)
- Updated examples in documentation to showcase quality parameter usage
[1.1.0] - 2025-01-02
Added
- Progressive JPEG support for Sharp mode
- New
jpeg
format option in IAssetVariation interface - New
progressive
boolean option for creating progressive JPEGs - Tests for progressive JPEG functionality
Fixed
- Fixed Sharp switch statement missing break statements causing all formats to output as PNG
- Updated Jimp resize to properly maintain aspect ratio
Changed
- Updated dependencies:
- jimp: ^0.22.10 → ^1.6.0
- sharp: ^0.33.2 → ^0.34.3
- @push.rocks/smartpath: ^5.0.5 → ^6.0.0
- @push.rocks/smartrequest: ^2.0.15 → ^4.2.1
- @git.zone/tstest: ^1.0.86 → ^2.3.2
- Both Sharp and Jimp modes now default to JPEG when no format is specified
- Updated documentation to include progressive JPEG examples
Notes
- Progressive JPEG encoding is only supported in Sharp mode
- Jimp mode will create standard JPEGs regardless of the progressive setting