Skip to content

Binary encoder fails if over 31 chars #12

@bozhinov

Description

@bozhinov

`require 'bootstrap.php';

use Metzli\Encoder\Encoder;
use Metzli\Encoder\DataEncoder\BinaryDataEncoder;
use Metzli\Renderer\PngRenderer;

$encoder = new BinaryDataEncoder();

$code = Encoder::encode(str_repeat("a", 50), 33, $encoder);
$renderer = new PngRenderer();

file_put_contents("test.png", $renderer->render($code));
`
The barcode scanner says there is an extra KF at the end of the string

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