Skip to content

Use multiple output interface. #251

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

You must be logged in to vote

Do you have a specific requirement for the output (e.g. raster image)? If the QR Code is intended to be displayed on the web, there's no need to convert and you can just run with one of the SVG examples.
The imagickWithLogo is a pure ImageMagick example that is intended for raster output, while imagickConvertSVGtoPNG extends the SVG output class and adds conversion to a raster image on top. The SVG conversion with ImageMagick may or may not come with some issues (see #247) and it's recommended to use the Inkscape command line for conversion instead (as noted in the example).
In any case, there's no need to use multiple output classes.

Replies: 1 comment 6 replies

Comment options

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

@hosmelq
Comment options

@codemasher
Comment options

@hosmelq
Comment options

@codemasher
Comment options

Answer selected by hosmelq
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