Skip to content

Saturate a QR Code Symbol of a given version and EC level #3

@ghost

Description

Hello, kennytm. I'm not sure this is the correct venue to raise this issue. I apologies in advance if expressing this issue here is not appropriate.

When encoding is done using QrCode::with_version, push_optimal_data is used internally to dynamically select the best encoding for the segmented data. This makes the maximum amount of data a QR-code symbol can hold dependent on the nature of the encoded data.

Is it possible to determine this amount using this crate's public API? If not, is it possible to oversupply data to the encoder and determine how much of that data was successfully encoded?

Background information: I am working on an open source project that serializes binary data as a series of QR Code symbols. I need to keep the number of generated symbols to a minimum. There are constants on symbol dimensions and module size; and hence the requirement for a version limit.

Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions