Skip to content

hughbe/ICCReader

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

ICCReader

Swift library for reading ICC color profiles defined in the the ICC Profile Format Specification.

Example Usage

Add the following line to your project's SwiftPM dependencies:

.package(url: "https://github.com/hughbe/ICCReader", from: "1.0.0"),
import ICCReader

let data = Data(contentsOfFile: "<path-to-file>.icm")!
let profile = try ICCColorProfile(data: data)

// Dump all the tags.
for tag in profile.tags {
    print(tag.signature)
    print(tag.type)
    print(tag.data)
}

// Print known tags (e.g. copyright)
print(profile.getTag(signature: "cprt"))
print(profile.getTag(signature: ICCTagSignature.copyright))
print(profile.copyright)

About

Swift definitions for structures, enumerations and functions defined in the [ICC Profile Format Specification]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages