Releases: koher/swift-image
Releases · koher/swift-image
Support `Sendable`
Support Swift 5.2
- Support Swift 5.2
- Fix unsafe pointer operations which caused bugs in Swift 5.2
SwiftImage
- Rename the library to SwiftImage
- Swift 5.0/5.1+ and Xcode 10.2/10.3/11.0+
- Refactor
_NumericPixelwithAdditiveArithmetic#44 - Add
RGB#45- Add the
RGBtype - Add some static fixed color properties to
RGBAlike.cyanto make them correspond with ones ofRGB - Rename
RGBA.transparenttoRGBA.clearto followUIColor - Make APIs of
RGBAlikeredIntdeprecated - Introduce the
_TypicalChannelprotocol
- Add the
- Refactor code related to CoreGraphics #46
- Make APIs related to CoreGraphics, UIKit and AppKit
@inlinable - Support APIs related to UIKit and AppKit for
ImageSlice
- Make APIs related to CoreGraphics, UIKit and AppKit
- Make color types conform to
_ExpressibleByColorLiteral#47RGBA: _ExpressibleByColorLiteralPremiltipliedRGBA: _ExpressibleByColorLiteral
- Make
ImageProtocol.updateexperimental #48- Rename
updateto_update
- Rename
Replace `@_specialize` with `@inlinable`
- Swift 4.2 / 5.0
- Replaced
@_specializewith@inlinable- It accomplished removing massive lines of
@_specialized.
- It accomplished removing massive lines of
pngData()andjpegData(compressionQuality:)similar toUIImage'sfunc data(using format: Image.Format) -> Data?was renamed topngData()andjpegData(compressionQuality:).
- Removed
CountableRangeandCountableClosedRange- They were removed in Swift 4.2.
- Renamed
_Numericto_NumericPixeland refactor_NumericPixel - Removed APIs for images with channels of
UInt32andUInt64 - Removed
RGBA<UInt8>.initandRGBA<UInt16>.initfor channels ofInt
Support Swift 5 and Xcode 10.2
- Swift 4.2 / 5.0
- Replaced
@_specializewith@inlinable pngData()andjpegData(compressionQuality:)similar toUIImage'sfunc data(using format: Image.Format) -> Data?was renamed
- Removed
CountableRangeandCountableClosedRange - Renamed
_Numericto_NumericPixeland refactor_NumericPixel - Removed APIs for images with channels of
UInt32andUInt64 - Removed
RGBA<UInt8/16>.initfor channels ofInt
Changes from 0.6.0-alpha
- Fixed a bug of
ImageProtocol.mapin Swift 5
Support Swift 5 and Xcode 10.2
- Fixed a bug of
ImageProtocol.mapin Swift 5
Support Swift 5 and Xcode 10.2
- Fixed a bug of
ImageProtocol.mapin Swift 5
Swift 4.2 and introducing `@inlinable`
- Swift 4.2
- Replaced
@_specializewith@inlinable pngData()andjpegData(compressionQuality:)similar toUIImage's- Removed
CountableRangeandCountableClosedRange - Renamed
_Numericto_NumericPixeland refactor_NumericPixel - Removed APIs for images with channels of
UInt32andUInt64 - Removed
RGBA<UInt8/16>.initfor channels ofInt
Fix a kind of memory leaks
- Fixed a kind of memory leaks:
CGImageinstances created in thedata(using:)method internally had been autoreleased by Obj-C frameworks. It may have caused problems whendata(using:)was used heavily in a loop without manualautoreleasepool.
Prevent Realloc and Copies by Reserving Capacity
Performance improvements. #28