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
_NumericPixel
withAdditiveArithmetic
#44 - Add
RGB
#45- Add the
RGB
type - Add some static fixed color properties to
RGBA
like.cyan
to make them correspond with ones ofRGB
- Rename
RGBA.transparent
toRGBA.clear
to followUIColor
- Make APIs of
RGBA
likeredInt
deprecated - Introduce the
_TypicalChannel
protocol
- 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: _ExpressibleByColorLiteral
PremiltipliedRGBA: _ExpressibleByColorLiteral
- Make
ImageProtocol.update
experimental #48- Rename
update
to_update
- Rename
Replace `@_specialize` with `@inlinable`
- Swift 4.2 / 5.0
- Replaced
@_specialize
with@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
CountableRange
andCountableClosedRange
- They were removed in Swift 4.2.
- Renamed
_Numeric
to_NumericPixel
and refactor_NumericPixel
- Removed APIs for images with channels of
UInt32
andUInt64
- Removed
RGBA<UInt8>.init
andRGBA<UInt16>.init
for channels ofInt
Support Swift 5 and Xcode 10.2
- Swift 4.2 / 5.0
- Replaced
@_specialize
with@inlinable
pngData()
andjpegData(compressionQuality:)
similar toUIImage
'sfunc data(using format: Image.Format) -> Data?
was renamed
- Removed
CountableRange
andCountableClosedRange
- Renamed
_Numeric
to_NumericPixel
and refactor_NumericPixel
- Removed APIs for images with channels of
UInt32
andUInt64
- Removed
RGBA<UInt8/16>.init
for channels ofInt
Changes from 0.6.0-alpha
- Fixed a bug of
ImageProtocol.map
in Swift 5
Support Swift 5 and Xcode 10.2
- Fixed a bug of
ImageProtocol.map
in Swift 5
Support Swift 5 and Xcode 10.2
- Fixed a bug of
ImageProtocol.map
in Swift 5
Swift 4.2 and introducing `@inlinable`
- Swift 4.2
- Replaced
@_specialize
with@inlinable
pngData()
andjpegData(compressionQuality:)
similar toUIImage
's- Removed
CountableRange
andCountableClosedRange
- Renamed
_Numeric
to_NumericPixel
and refactor_NumericPixel
- Removed APIs for images with channels of
UInt32
andUInt64
- Removed
RGBA<UInt8/16>.init
for channels ofInt
Fix a kind of memory leaks
- Fixed a kind of memory leaks:
CGImage
instances 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