Skip to content

Commit

Permalink
use ifds function, new on master
Browse files Browse the repository at this point in the history
  • Loading branch information
tlnagy committed Sep 21, 2023
1 parent b79f83f commit cfcd0c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/writing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ dump(img; maxdepth=1)

# Lets take a look at what tags there are:

ifd = first(img.ifds) # since our data is 2D
ifd
ifd = ifds(img) # since our data is 2D

# ### Manipulating TIFF Tags
#
Expand Down Expand Up @@ -146,7 +145,7 @@ img3 = TiffImages.DenseTaggedImage(colors)
data = rand(-100:100, 5, 5)
#--------------------------
img4 = TiffImages.DenseTaggedImage(reinterpret(Gray{Q0f63}, data))
println(img4.ifds[1])
println(first(ifds(img4)))

# As you can see the `SAMPLEFORMATS` and `BITSPERSAMPLE` tags correctly updated
# to show that this TIFF contains signed integers and 64-bit data, respectively.
Expand Down

0 comments on commit cfcd0c5

Please sign in to comment.