Skip to content

QRCode SVG image with logo and colors not working #70

Answered by crustamet
crustamet asked this question in Q&A
Discussion options

You must be logged in to vote

So i have done it if you want to push it for the SVG example with Logo this is it man :D sorry for bothering and thanks
The library is good

	class QRCodeLogo extends QRMarkup{

		/**
		 * @param string|null $file
		 * @param string|null $logo
		 *
		 * @return string
		 * @throws \chillerlan\QRCode\Output\QRCodeOutputException
		 */
		public function dump(string $file = null, string $logo = null):string{
			
			$this->options->returnResource = true;

			if(!is_file($logo) || !is_readable($logo)){
				throw new QRCodeOutputException('invalid logo');
			}

			$this->matrix->setLogoSpace(
				$this->options->logoSpaceWidth,
				$this->options->logoSpaceHeight
				// not utilizing the positio…

Replies: 23 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by codemasher
Comment options

You must be logged in to vote
1 reply
@crustamet
Comment options

Comment options

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

@MohamAladham
Comment options

@codemasher
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #69 on June 05, 2021 11:48.