Skip to content

Commit

Permalink
Add new CompressionQuality values
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey1312 committed Jan 18, 2022
1 parent a8e6abb commit 54c8d54
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Sources/SnapshotTestingHEIC/HEIC/CompressionQuality.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ public struct CompressionQuality: ExpressibleByFloatLiteral {
public init(_ value: Float) {
self.value = value
}

public static var lossless: CompressionQuality {
return 1.0
}


public static var low: CompressionQuality {
return 0.8
}

public static var medium: CompressionQuality {
return 0.5
}


public static var high: CompressionQuality {
return 0.2
}

public static var maximum: CompressionQuality {
return 0.0
}
Expand Down

0 comments on commit 54c8d54

Please sign in to comment.