Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dagronf committed May 5, 2024
1 parent 2bdfa5e commit 016a9cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SwiftImageReadWrite.podspec
Original file line number Diff line number Diff line change
@@ -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' }
Expand Down

0 comments on commit 016a9cb

Please sign in to comment.