Skip to content

Save custom TIFF tags in LZW-compressed TIFFs #660

@jondo

Description

@jondo

If I understand correctly, the recent changes (#369) have not made it possible to write custom TIFF tags. I would like to do the following:

info = TiffImagePlugin.ImageFileDirectory()
CustomTagId = 37000
info[CustomTagId] = 6
info.tagtype[CustomTagId] = 3 # 'short' according to TiffTags.TYPES

img.save(pathname, tiffinfo = info)

This corresponds to "Defining Application Tags" in http://www.remotesensing.org/libtiff/addingtags.html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAny unexpected behavior, until confirmed feature.EnhancementTIFF

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions