hi Swifties!
i unexpectedly found myself with some spare time this weekend, so i decided to dust off and restore the swift-jpeg library which i had originally published in 2017.
although the library does a lot of things (like lossless rotations, lossless cropping, requantization) that are hard to do using other approaches, it had become very difficult to use for several reasons:
-
the library’s root manifest exposed its tests and example programs as SwiftPM products, which were prone to name conflicts, especially when used in combination with the swift-png library
-
the GitHub Pages documentation had broken years ago, and the doccomments were written in a pre-DocC format that is no longer supported by any documentation engine today, leaving the library effectively un-navigable
-
the repository’s CI was completely rusted, preventing people from easily contributing PRs to address either of the above issues
so the 2.0.0 release was planned to tackle these three problems. (of course, finding a library that does exactly what you need but is no longer actively maintained is probably a canon Swift experience we can all relate to, so hopefully this release at least fixes one broken streetlamp in our language ecosystem. )
finally, i want to give much thanks to @valeriyvan for contributing critical fixes over the past 7 years.
API compatibility
the 2.0.0 release is a semver major, because platform-dependent APIs moved from the JPEG
module to JPEGSystem
.
Requirements
swift-jpeg 2.0.0 requires Swift 5.10 or later.