Skip to content

Cannot Encode TIFF with a Given Palette #225

@IQubic

Description

@IQubic

I see that decodeTiffWithPaletteAndMetadata :: ByteString -> Either String (PalettedImage, Metadatas) exists, which lets me extract the palette of a Tiff image. However, if I make changes to that palette, I see no way of encoding the same TIFF data, just with a different palette.

GIF and PNG have encodeGifImageWithPalette :: Image Pixel8 -> Palette -> Either String ByteString and encodePalettedPng :: PngPaletteSaveable a => Image a -> Image Pixel8 -> Either String ByteString respectively, but I see no equivalent for TIFFs.

Is there something I'm missing, that would let me modify the palette of a PalettedImage (TIFF in my current use case) and then re-encode the image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions