-
Notifications
You must be signed in to change notification settings - Fork 17
Better support for palette color images #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #189 +/- ##
==========================================
+ Coverage 93.33% 93.37% +0.03%
==========================================
Files 15 15
Lines 1186 1192 +6
==========================================
+ Hits 1107 1113 +6
Misses 79 79 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Awesome @lanceXwq! Thanks for doing this. Do you mind bumping the patch version? Also, there seem to be some failures on Julia 1.6. My guess is there's an inference difference between 1.6 and 1.10+? |
I tried reproducing the CI runs on macOS and Ubuntu with Julia v1.6.7. All tests passed locally, so the issue might not be related to the Julia version, but possibly to some differences in package versions. julia> import Pkg; Pkg.test(;coverage=true, julia_args=["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"])
Testing TiffImages
Status `/tmp/jl_NPnUut/Project.toml`
[4c88cf16] Aqua v0.8.13
[39de3d68] AxisArrays v0.4.7
[3da002f7] ColorTypes v0.12.1
[c3611d14] ColorVectorSpace v0.11.0
[e30172f5] Documenter v1.12.0
[53c48c17] FixedPointNumbers v0.8.5
[6fe1bfb0] OffsetArrays v1.17.0
[fdea26ae] SIMD v3.7.1
[5e47fb64] TestImages v1.9.0
[731e570b] TiffImages v0.11.4 `~/ASU Dropbox/Xu Weiqing/Code/Julia/TiffImages.jl`
[f43a241f] Downloads `@stdlib/Downloads`
[10745b16] Statistics `@stdlib/Statistics`
[8dfed614] Test `@stdlib/Test` GitHub CI: Testing TiffImages
Status `/private/var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/jl_Xg3qrS/Project.toml`
[4c88cf16] Aqua v0.8.13
[39de3d68] AxisArrays v0.4.7
[3da002f7] ColorTypes v0.10.0
[c3611d14] ColorVectorSpace v0.9.2
[e30172f5] Documenter v1.12.0
[53c48c17] FixedPointNumbers v0.8.0
[6fe1bfb0] OffsetArrays v1.0.4
[fdea26ae] SIMD v3.4.7
[5e[47](https://github.com/tlnagy/TiffImages.jl/actions/runs/15577707085/job/43919557288?pr=189#step:7:50)fb64] TestImages v1.6.2
[731e570b] TiffImages v0.11.4 `~/work/TiffImages.jl/TiffImages.jl`
[f43a241f] Downloads `@stdlib/Downloads`
[10745b16] Statistics `@stdlib/Statistics`
[8dfed614] Test `@stdlib/Test` It looks like several dependencies are quite a bit older on CI, which might explain the differences we’re seeing. Would updating the compat entries in I can bump the patch version once this is resolved. |
That's interesting. You also ran Julia using |
Yes, I did.
The current In the meantime, I’m trying to reproduce the CI failure by matching the exact package versions used in the GitHub run. Hopefully, that helps pinpoint the issue.🤞 |
I tracked down the issue, @tlnagy. When |
Awesome! Thanks for doing this. |
This should close #188.
Please note: my editor auto-formats the code, so the diff may appear larger than the actual changes.
In short, I’ve added two new methods to
interpretation
,samplesperpixel
, andbitspersample
, respectively, to handle the corresponding tags for palette color images. I’d appreciate it if you could take a look and let me know if anything needs adjusting!