Use multiple output interface. #251
-
I need to create QRs with gradients so I believe I need to use SVG but also I need to add a logo inside. Seeing the examples Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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, whileimagickConvertSVGtoPNG
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.