Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP: how to change the size of resulting image? #58

Open
wowcut opened this issue Aug 14, 2018 · 2 comments
Open

PHP: how to change the size of resulting image? #58

wowcut opened this issue Aug 14, 2018 · 2 comments

Comments

@wowcut
Copy link

wowcut commented Aug 14, 2018

In the sample_image.php demo I can see how to create an image - but how do I change the size of that created image?

@kazuhikoarase
Copy link
Owner

Hi,

$im = $qr->createImage(2, 4);

The first argument of createImage is a size of module in pixel.

thank you.

@kacer2k
Copy link

kacer2k commented Jan 22, 2019

And second parameter "4" is margin of image.

You have this table from js readme:

createDataURL(cellSize, margin) => string
createImgTag(cellSize, margin, alt) => string
createSvgTag(cellSize, margin) => string
createTableTag(cellSize, margin) => string
createASCII(cellSize, margin) => string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants