Skip to content

Commit 1cf8d4e

Browse files
committed
Switch to tagged release of stackotter/swift-png until debug mode optimizations get merged, and make Image Equatable
1 parent bcae54c commit 1cf8d4e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ DerivedData/
66
.swiftpm/configuration/registries.json
77
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
88
.netrc
9+
*.trace

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
)
1313
],
1414
dependencies: [
15-
.package(url: "https://github.com/stackotter/swift-png", from: "4.4.4"),
15+
.package(url: "https://github.com/stackotter/swift-png", from: "4.4.7"),
1616
.package(url: "https://github.com/stackotter/jpeg", from: "1.0.2"),
1717
.package(url: "https://github.com/stackotter/swift-libwebp", from: "0.1.0"),
1818
],
@@ -30,5 +30,9 @@ let package = Package(
3030
dependencies: ["ImageFormats"],
3131
resources: [.copy("test.png"), .copy("test.jpg"), .copy("test.webp")]
3232
),
33+
.executableTarget(
34+
name: "Benchmarks",
35+
dependencies: ["ImageFormats"]
36+
),
3337
]
3438
)

Sources/ImageFormats/Image.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public enum ImageLoadingError: Error {
88
case unknownImageFileExtension(String)
99
}
1010

11-
public struct Image<Pixel: BytesConvertible> {
11+
public struct Image<Pixel: BytesConvertible>: Equatable {
1212
public var width: Int
1313
public var height: Int
1414
public var data: [UInt8]

0 commit comments

Comments
 (0)