diff --git a/README.md b/README.md index ceaacf3..724a18e 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,16 @@ let cgImage = CGImage.load(data: data) let swiftUIImage = cgImage.representation.swiftUI(scale: 2, label: Text("My Image")) ``` +## Converting colorspaces + +This library provides basic colorspace conversion to CMYK, Gray and sRGB. + +```swift +let cmykImage = try image.convertColorspace.genericCMYK() +let grayImage = try image.convertColorspace.deviceGray() +let sRGBImage = try image.convertColorspace.sRGB() +``` + ## Limitations * `NSImage` supports multiple image representations within a single image. These routines only deal with a single diff --git a/SwiftImageReadWrite.podspec b/SwiftImageReadWrite.podspec index 5ce0ea0..e9b450c 100644 --- a/SwiftImageReadWrite.podspec +++ b/SwiftImageReadWrite.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'SwiftImageReadWrite' -s.version = '1.7.1' +s.version = '1.7.2' s.summary = 'A basic microframework of routines for doing basic importing/exporting of `CGImage` and `NSImage`/`UIImage` type images.' s.homepage = 'https://github.com/dagronf/SwiftImageReadWrite' s.license = { :type => 'MIT', :file => 'LICENSE' }