Magic Cloud

An Open Source Application Generator


Magic Lambda Image

Image manipulation library for Magic, allowing you to do basic manipulation of images, in addition to generating QR codes. More specifically this project contains the following slot.

Generating a QR code

You can use the [qr.generate] slot to create a QR code. This slot returns the QR code as a MemoryStream, which allows you to return its output directly over the HTTP response object, which again will persist the QR code back as the response to the caller if you’re in a web project of some sort using Magic. The slot takes two arguments.

Below is an example of usage

qr.generate:"https://anarq.org"
   size:8

After execution, the above invocation slot will contain a MemoryStream encapsulating your underlaying code. Below is an example QR code generated by the library.

QR Code

Project website

The source code for this repository can be found at github.com/polterguy/magic.lambda.image, and you can provide feedback, provide bug reports, etc at the same place.

Quality gates

License

This project is the copyright(c) 2020-2021 of Thomas Hansen thomas@servergardens.com, and is licensed under the terms of the LGPL version 3, as published by the Free Software Foundation. See the enclosed LICENSE file for details.