Replies: 1 comment 4 replies
-
Hey, in case you're using the current For the released v4.3.x you could do something like this (see also // extend the options class to add size parameters
class LogoSpaceOptions extends QROptions{
// size in QR modules
protected int $logoSpaceWidth;
protected int $logoSpaceHeight;
}
// this would work with any output module, GD is just for example
class QRImageWithLogo extends QRImage{
public function dump(string $file = null){
// add logo space before processing the output
// actually, you can freely modify the matrix at this point via QRMatrix::set()
$this->matrix->setLogoSpace(
$this->options->logoSpaceWidth,
$this->options->logoSpaceHeight
);
return parent::dump($file);
}
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
No image. Just a square blank space...
Beta Was this translation helpful? Give feedback.
All reactions