Skip to content

Commit

Permalink
Merge pull request #13 from link-u/fix/set-correct-color-space-as-pos…
Browse files Browse the repository at this point in the history
…sible

Support libavif v0.60 and set proper color space as possible.
  • Loading branch information
dreampiggy authored Mar 13, 2020
2 parents ab2fde9 + 9da58e8 commit adc8bdf
Show file tree
Hide file tree
Showing 5 changed files with 621 additions and 64 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check-image-decoding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
file=$(basename ${file})
"${CMD}" "${file}" "./decoded/${file}.png"
done
- name: Upload result
uses: actions/upload-artifact@v1
with:
name: decoded-images
path: avif-sample-images/decoded
- name: Install imagemagick to compare images.
shell: bash
run: brew install imagemagick
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "SDWebImage/SDWebImage" ~> 5.0
github "SDWebImage/libavif-Xcode" ~> 0.5
github "SDWebImage/libavif-Xcode" ~> 0.6
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let package = Package(
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.1.0"),
.package(url: "https://github.com/SDWebImage/libavif-Xcode.git", from: "0.5.0")
.package(url: "https://github.com/SDWebImage/libavif-Xcode.git", from: "0.6.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
2 changes: 1 addition & 1 deletion SDWebImageAVIFCoder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ Which is built based on the open-sourced libavif codec.
s.source_files = 'SDWebImageAVIFCoder/Classes/**/*', 'SDWebImageAVIFCoder/Module/SDWebImageAVIFCoder.h'

s.dependency 'SDWebImage', '~> 5.0'
s.dependency 'libavif', '~> 0.5'
s.dependency 'libavif', '~> 0.6'
end
Loading

0 comments on commit adc8bdf

Please sign in to comment.