Skip to content

Releases: koher/swift-image

Support `Sendable`

15 Sep 06:32
Compare
Choose a tag to compare
  • Make pixel types conform to Sendable where Channel conforms to Sendable
  • Make image types conform to Sendable where Pixel conforms to Sendable
  • Remove the xcodeproj
  • Update swift-tools-version to 5.10

Support Swift 5.2

26 Apr 17:05
c61b8cf
Compare
Choose a tag to compare
  • Support Swift 5.2
  • Fix unsafe pointer operations which caused bugs in Swift 5.2

SwiftImage

22 Sep 12:44
377d71a
Compare
Choose a tag to compare
  • Rename the library to SwiftImage
  • Swift 5.0/5.1+ and Xcode 10.2/10.3/11.0+
  • Refactor _NumericPixel with AdditiveArithmetic #44
  • Add RGB #45
    • Add the RGB type
    • Add some static fixed color properties to RGBA like .cyan to make them correspond with ones of RGB
    • Rename RGBA.transparent to RGBA.clear to follow UIColor
    • Make APIs of RGBA like redInt deprecated
    • Introduce the _TypicalChannel protocol
  • 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 color types conform to _ExpressibleByColorLiteral #47
    • RGBA: _ExpressibleByColorLiteral
    • PremiltipliedRGBA: _ExpressibleByColorLiteral
  • Make ImageProtocol.update experimental #48
    • Rename update to _update

Replace `@_specialize` with `@inlinable`

28 Mar 01:20
91b83c8
Compare
Choose a tag to compare
  • Swift 4.2 / 5.0
  • Replaced @_specialize with @inlinable
    • It accomplished removing massive lines of @_specialized.
  • pngData() and jpegData(compressionQuality:) similar to UIImage's
    • func data(using format: Image.Format) -> Data? was renamed to pngData() and jpegData(compressionQuality:).
  • Removed CountableRange and CountableClosedRange
    • They were removed in Swift 4.2.
  • Renamed _Numeric to _NumericPixel and refactor _NumericPixel
  • Removed APIs for images with channels of UInt32 and UInt64
  • Removed RGBA<UInt8>.init and RGBA<UInt16>.init for channels of Int

Support Swift 5 and Xcode 10.2

27 Mar 03:30
Compare
Choose a tag to compare
Pre-release
  • Swift 4.2 / 5.0
  • Replaced @_specialize with @inlinable
  • pngData() and jpegData(compressionQuality:) similar to UIImage's
    • func data(using format: Image.Format) -> Data? was renamed
  • Removed CountableRange and CountableClosedRange
  • Renamed _Numeric to _NumericPixel and refactor _NumericPixel
  • Removed APIs for images with channels of UInt32 and UInt64
  • Removed RGBA<UInt8/16>.init for channels of Int

Changes from 0.6.0-alpha

  • Fixed a bug of ImageProtocol.map in Swift 5

Support Swift 5 and Xcode 10.2

27 Mar 16:30
961ed8f
Compare
Choose a tag to compare
  • Fixed a bug of ImageProtocol.map in Swift 5

Support Swift 5 and Xcode 10.2

27 Mar 02:41
Compare
Choose a tag to compare
Pre-release
  • Fixed a bug of ImageProtocol.map in Swift 5

Swift 4.2 and introducing `@inlinable`

16 Feb 14:55
Compare
Choose a tag to compare
Pre-release
  • Swift 4.2
  • Replaced @_specialize with @inlinable
  • pngData() and jpegData(compressionQuality:) similar to UIImage's
  • Removed CountableRange and CountableClosedRange
  • Renamed _Numeric to _NumericPixel and refactor _NumericPixel
  • Removed APIs for images with channels of UInt32 and UInt64
  • Removed RGBA<UInt8/16>.init for channels of Int

Fix a kind of memory leaks

11 Feb 08:55
19e5264
Compare
Choose a tag to compare
  • Fixed a kind of memory leaks: CGImage instances created in the data(using:) method internally had been autoreleased by Obj-C frameworks. It may have caused problems when data(using:) was used heavily in a loop without manual autoreleasepool.

Prevent Realloc and Copies by Reserving Capacity

20 Sep 20:19
Compare
Choose a tag to compare