Skip to content

Clarify saving LZW-compressed TIFFs in the documentation #5335

@pkkm

Description

@pkkm

The documentation about saving TIFF images says that

Valid compression methods are: None, "tiff_ccitt", "group3", "group4", "tiff_jpeg", "tiff_adobe_deflate", "tiff_thunderscan", "tiff_deflate", "tiff_sgilog", "tiff_sgilog24", "tiff_raw_16"

However, I can create LZW-compressed TIFFs by passing a "tiff_lzw" value:

image.save("image.tif", compression="tiff_lzw")

Since LZW is a commonly used compression method, I think it would be good to clarify what's going on here:

  • Does it accidentally happen to work but with problems I'm not seeing?
  • Is the support dependent on the user's software configuration?
  • Is the value "tiff_lzw" officially supported and the fact that it isn't in the documentation is an oversight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions