src/SimpleSoftwareIO/QrCode/BaconQrCodeGenerator.php
public function merge($filepath, $percentage = .2, $absolute = false)
    {
        if (function_exists('base_path') && !$absolute) {
            $filepath = base_path().$filepath;
        }

        $this->imageMerge = file_get_contents($filepath);
        $this->imagePercentage = $percentage;

        return $this;
    }
public function merge($filepath, $percentage = .2, $absolute = false)
    {
        if (function_exists('base_path') && !$absolute) {
            $filepath = base_path().$filepath;
        }

        $this->imageMerge = file_get_contents($filepath);
        $this->imagePercentage = $percentage;

        return $this;
    }
public function merge ( $ filepath , $ percentage = .2 , $ absolute = false ) { if ( function_exists ( 'base_path' ) && ! $ absolute ) { $ filepath = base_path ( ) . $ filepath ; } $ this -> imageMerge = file_get_contents ( $ filepath ) ; $ this -> imagePercentage = $ percentage ; return $ this ; }
Merges an image with the center of the QrCode.

@param $filepath string The filepath to an image
@param $percentage float The amount that the merged image should be placed over the qrcode.
@param $absolute boolean Whether to use an absolute filepath or not.

@return $this
Merges an image with the center of the QrCode .