ropensci / ijtiff

An R Package for general purpose TIFF file I/O which plays nice with ImageJ
https://docs.ropensci.org/ijtiff
18 stars 10 forks source link

Writing tiff with metadata #18

Open DaphneW-AkoyaBio opened 2 years ago

DaphneW-AkoyaBio commented 2 years ago

Hi! Are there plans to incorporate the ability to write TIFF file with metadata?

rorynolan commented 2 years ago

Hi Daphne, Which Metadata would you like to be able to write to your tiff images?

On Tue, Aug 2, 2022, 8:11 AM Daphne Wang @.***> wrote:

Hi! Are there plans to incorporate the ability to write TIFF file with metadata?

— Reply to this email directly, view it on GitHub https://github.com/ropensci/ijtiff/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3UVVGXWSOSXHR5Y5LKSF3VXE3DBANCNFSM55LRBXNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DaphneW-AkoyaBio commented 2 years ago

Hi, thank you for the response. I would like to be able to write the following tags: NewSubfileType 254 ImageWidth 256 ImageLength 257 BitsPerSample 258 Compression 259 Photometric 262 ImageDescription 270 StripOffsets 273 Orientation 274 SamplesPerPixel 277 RowsPerStrip 278 StripByteCounts 279 XResolution 282 YResolution 283 PlanarConfig 284 Xposition 286 Yposition 287 ResolutionUnit 296 Predictor 317 SampleFormat 339

rorynolan commented 2 years ago

Can you please provide me with a sample image which has these metadata in it?

DaphneW-AkoyaBio commented 2 years ago

I sent an email with 2 sample images with the requested metadata. Thanks for reviewing.

rorynolan commented 2 years ago

Dear Daphne, Can you please elaborate a bit on what you're trying to do. You say

I would like to be able to read in the tif and modify the tif tags, and then output a new tif file with the updated tif tags.

Which tags would you like to be able to do this with? Some of the tags you've listed above are fundamental to the image (e.g. ImageWidth) whereas others you might want to change (e.g. ImageDescription).

gitdemont commented 4 months ago

Hi,

I am also interested in that feature.

Precisely, being able to write ome-xml, i.e. add a xml string (type 2) tag number 270 in the 1st IFD. And also string info in tag 270 of the remaining IFDs in a multichannel tiff.