Make QRImage::image public
byjg opened this issue · 0 comments
byjg commented
Hi,
I need to handle the QR code generated image before I send it. Can you make the QRImage::image public?
I need to do something like this:
$raw = QRcode::raw("$hash", false, Constants::QR_ECLEVEL_H);
$frame = QRtools::binarize($raw);
$maxSize = (int)(Constants::QR_PNG_MAXIMUM_SIZE / (count($frame)+2*$margin));
$image = QRimage::image($frame, min(max(1, $size), $maxSize), $margin);