tlnagy / TiffImages.jl

💎 Pure-Julia TIFF I/O with a focus on correctness 🧐
http://tamasnagy.com/TiffImages.jl/
MIT License
51 stars 13 forks source link

Error when opening tiff files #161

Open Dunckleosteus opened 3 months ago

Dunckleosteus commented 3 months ago

When I try to open a tiff file I get this error:

BoundsError: attempt to access 726×246 Array{Gray{N0f16},2} with eltype ColorTypes.Gray{FixedPointNumbers.N0f16} at index [174241:182952]

Here is my code:

using TiffImages
TiffImages.load(datasets[1])

Where datasets is a list of valid tiff files.

My packages:

 [ad839575] Blink v0.12.9
  [a93c6f00] DataFrames v1.6.1
  [c27321d9] Glob v1.3.1
⌃ [916415d5] Images v0.26.0
  [c601a237] Interact v0.10.5
⌃ [91a5bcdd] Plots v1.39.0
  [c3e4b0f8] Pluto v0.19.40
  [7f904dfe] PlutoUI v0.7.58
  [f3b207a7] StatsPlots v0.15.7
⌅ [731e570b] TiffImages v0.6.8
  [10745b16] Statistics

Using windows 10

tlnagy commented 3 months ago

Hi thanks for the bug report, but it's hard to know what's going on with the information that you provided. Could you be provide a minimal working example? Ideally, this would be a small TIFF that reproduces your problem.