Skip to content

Supporting compression for writeArrayBuffer (JPG, LZW, Deflate etc) #472

@jo-chemla

Description

@jo-chemla

Would it be possible to enable compression support for writeArrayBuffer when encoding a data array into image?

UTIF.js advertises supporting compression JPG, LZW, Deflate among others but only for decoding.

complete list advertised in readme - see mapping: 1,3,4,5,6,7,8,32773,32809

Tracker for compression support in utif-js here photopea/UTIF.js#121. Note if pako library exists within the window scope, it gets used, which results in deflate encoding support, but external reference is probably bad practice.

Edit: it might also be best to implement compression encoding for geotiffwriter independently of how utifjs handles it, since it does not seem to be on their roadmap as of now.

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