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

Saving TIFF stack does not support tags with type long8 #7077

Closed
stilley2 opened this issue Apr 9, 2023 · 1 comment · Fixed by #7078
Closed

Saving TIFF stack does not support tags with type long8 #7077

stilley2 opened this issue Apr 9, 2023 · 1 comment · Fixed by #7078
Labels

Comments

@stilley2
Copy link

stilley2 commented Apr 9, 2023

Title pretty much says it all.

I believe the problem is that this list doesn't contain long8: here

to reproduce

import numpy as np
import PIL
from PIL.TiffImagePlugin import ImageFileDirectory_v2
x = np.ones((2, 10, 10))
pilimgs = [PIL.Image.fromarray(i) for i in x]
ifd = ImageFileDirectory_v2()
ifd[256] = 10
ifd[257] = 10
ifd[65000] = 1234
ifd.tagtype[65000] = 16
pilimgs[0].save("testimgs.tif", save_all=True, tiffinfo=ifd,
                append_images=pilimgs[1:], format="tiff")
@radarhere
Copy link
Member

I've created PR #7078 to resolve this.

@radarhere radarhere changed the title Saving a tiff stack does not support tags with type long8 Saving TIFF stack does not support tags with type long8 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants