diff --git a/README.md b/README.md index 42dd30f..cb9e0dd 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ let image = CGImage/UIImage/NSImage let pngData = try image.representation.png(scale: 2) // Generate a JPG representation at 3x -let jpegData = try image.representation.jpeg(scale: 3, compression: 0.65, excludeGPSData: true)) +let jpegData = try image.representation.jpeg(scale: 3, compression: 0.65, excludeGPSData: true) // Generate a PDF representation let pdfData = try image.representation.pdf(size: CGSize(width: 300, height: 300)) diff --git a/Sources/SwiftImageReadWrite/CGImage/CGImage+export.swift b/Sources/SwiftImageReadWrite/CGImage/CGImage+export.swift index c50ba39..e9151c2 100644 --- a/Sources/SwiftImageReadWrite/CGImage/CGImage+export.swift +++ b/Sources/SwiftImageReadWrite/CGImage/CGImage+export.swift @@ -27,7 +27,7 @@ public extension CGImage { /// Return the image data in the required format /// - Parameters: /// - type: The format type to export (with options) - /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination/destination_properties) + /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination) /// - Returns: The formatted data, or nil on error func imageData(for type: ImageExportType, otherOptions: [String: Any]? = nil) throws -> Data { switch type { @@ -210,7 +210,7 @@ public extension CGImage { /// - scale: The image's scale value (for retina-type images eg. @2x == 2) /// - compression: The compression level to apply (clamped to 0 ... 1) /// - excludeGPSData: Strip any gps data - /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination/destination_properties) + /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination) /// - Returns: image data public func rawImageData( uniformTypeIdentifier: String, @@ -255,7 +255,7 @@ extension CGImage { /// - dpi: The image's dpi /// - compression: The compression level to apply (0...1) /// - excludeGPSData: If true, strips any GPS information from the output - /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination/destination_properties) + /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination) /// - Returns: image data func dataRepresentation( uniformTypeIdentifier: CFString, diff --git a/Sources/SwiftImageReadWrite/platform/PlatformImage+export.swift b/Sources/SwiftImageReadWrite/platform/PlatformImage+export.swift index b5b66c5..3cde1dd 100644 --- a/Sources/SwiftImageReadWrite/platform/PlatformImage+export.swift +++ b/Sources/SwiftImageReadWrite/platform/PlatformImage+export.swift @@ -158,7 +158,7 @@ public extension PlatformImage { /// - scale: The image's scale value (for retina-type images eg. @2x == 2) /// - compression: The compression level to apply (clamped to 0 ... 1) /// - excludeGPSData: Strip any gps data - /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination/destination_properties) + /// - otherOptions: Other options as defined in [documentation](https://developer.apple.com/documentation/imageio/cgimagedestination) /// - Returns: image data @inlinable public func rawImageData( uniformTypeIdentifier: String,