Hi guys,
Wondered if anyone has had any success changing the current white and black QR codes into something different: say a white code on a dark blue background.
Also does anyone know if there’s a border built into the generated QR code image or not?
Thanks!
Kevin
Hi sqwgglz,
Currently the QR code inserted in a delivery (through the module custom link inserted in the delivery body) is generated as an image file link, thanks to the server-side barcode.jsp script. And the parameters for the custom link setting how the image must be generated are the type of barcorde (QR, EAN128, etc), the size, resolution. The color is not a factory parameter.
So the only solution could be to adapt the barcode.jsp file located on server-side.
You can read the Java Server page code, it is pretty understandable. But I recommend to duplicate the barcode.jsp and modify the duplicated file, in order to keep safe / maintenance by Adobe for out of the box module.
If you are On Premise hosting, you can achieve this change by your own.
Alternative: ask Adobe for an evolution of the barcode module, with additional parameters.
Regards
J-Serge
The QRcode in Adobe Campaign is generated with zxing java library through the barcode.jsp script as Serge mentioned.
The following isn't likely to work, just use a reference for adaptation.
In line 310, you need to adapt the code to include color code arguments, obviously remember to backup the file because it will be overwritten on any upgrades.
Looking at some online examples, it is something along these lines.
reference extra class add it after line 40
com.google.zxing.client.j2se.MatrixToImageConfig
line 310 add method to pull MatrixToImageConfig params
and need to add the methods
references
https://aboullaite.me/generate-qrcode-with-logo-image-using-zxing/
MatrixToImageWriter (ZXing 3.3.3 API)
Modifier and Type | Method and Description |
---|---|
static BufferedImage | toBufferedImage(BitMatrix matrix) Renders a |
static BufferedImage | toBufferedImage(BitMatrix matrix, MatrixToImageConfig config) As |
Thanks for your help guys.
Didn't think this was something we can request. How do you ask Adobe for this? Through neolane support?
Views
Replies
Total Likes
Yes you can raise it through Neolane Support, however, it is likely to be assigned to Professional Services and this is billable, you can contact you account manager to find out more.
Views
Like
Replies
Views
Like
Replies
Views
Likes
Replies