Skip to content

Help saving in correct format #280

Answered by codemasher
CurvyLineo asked this question in Q&A
Discussion options

You must be logged in to vote

If it is still saved as SVG, this means it is using the SVG output class, which is the default output. And just now I realize that you might be using an example from dev-main with one of the v5.x releases. In dev-main (v6) the option outputType has been removed (see #223). You will need to add this setting and it should work fine:

$options->outputType = QROutputInterface::CUSTOM;

(you could also use one of the several constants that v5 provides for the several built-in output classes, but for simpler migration to future versions i wouldn't recommend this anymore)

See also https://github.com/chillerlan/php-qrcode?tab=readme-ov-file#documentation

Replies: 1 comment 7 replies

Comment options

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

@codemasher
Comment options

@CurvyLineo
Comment options

@codemasher
Comment options

Answer selected by CurvyLineo
@CurvyLineo
Comment options

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