feat(core): add progressive JPEG support and fix Sharp format switching

This commit is contained in:
2025-08-02 15:18:04 +00:00
parent c919507375
commit 764b074ca4
9 changed files with 8814 additions and 5092 deletions

27
changelog.md Normal file
View File

@@ -0,0 +1,27 @@
# Changelog
## [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