Skip to content

Commit

Permalink
fix PackBits decoding bug (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstphrbrns authored Oct 13, 2023
1 parent 8c898d1 commit 474e468
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TiffImages"
uuid = "731e570b-9d59-4bfa-96dc-6df516fadf69"
authors = ["Tamas Nagy <[email protected]>"]
version = "0.7.0"
version = "0.7.1"

[deps]
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
Expand Down
3 changes: 2 additions & 1 deletion src/compression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Base.read!(io::Union{TiffFile, TiffFileStrip}, arr::AbstractArray, ::Val{COMPRES
function Base.read!(tfs::TiffFileStrip, arr::AbstractArray{T, N}, ::Val{COMPRESSION_PACKBITS}) where {T, N}
pos = 1
nbit = Array{Int8}(undef, 1)
nxt = Array{T}(undef, 1)
nxt = Array{UInt8}(undef, 1)
arr = reinterpret(UInt8, arr)
while pos < length(arr)
read!(tfs.tf, nbit)
n = nbit[1]
Expand Down

2 comments on commit 474e468

@tlnagy
Copy link
Owner

@tlnagy tlnagy commented on 474e468 Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/93673

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.1 -m "<description of version>" 474e4681aea2a0d7095e17880af87e6bd7960253
git push origin v0.7.1

Please sign in to comment.