Skip to content
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

Writing tiff with metadata #18

Open
DaphneW-AkoyaBio opened this issue Aug 2, 2022 · 6 comments
Open

Writing tiff with metadata #18

DaphneW-AkoyaBio opened this issue Aug 2, 2022 · 6 comments

Comments

@DaphneW-AkoyaBio
Copy link

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

@rorynolan
Copy link
Collaborator

rorynolan commented Aug 2, 2022 via email

@DaphneW-AkoyaBio
Copy link
Author

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
Copy link
Collaborator

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

@DaphneW-AkoyaBio
Copy link
Author

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

@rorynolan
Copy link
Collaborator

rorynolan commented Aug 9, 2022

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants