Skip to content

How do I replicate a QR Code with rounded modules and pointy rounded control points with a PNG image overlay? #279

Discussion options

You must be logged in to vote

I finally got the logo to appear correctly, I set the png image to be 300x300 pixels as a standard size then reduced the size of the png by 13% and then set the height and width on the tag.

        use Intervention\Image\Laravel\Facades\Image;

        $imgScale = 0.13;
        $image = Image::read($logoBlob);
        $pngScaledWidth = $image->width() * $imgScale;
        $pngScaledHeight = $image->height() * $imgScale;

        $embedPng = '<image width="' . $pngScaledWidth . '" height="' . $pngScaledHeight . '" href="data:image/png;base64,' . $logoBlob . '" />';

and this is my getFinderPatterns function

protected function getFinderPatterns():string{

        $qz  = ($this->options->ad…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@codemasher
Comment options

@spacemunkey77
Comment options

@codemasher
Comment options

@spacemunkey77
Comment options

Answer selected by spacemunkey77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants