Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
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
Vistas
Respuestas
Total de me gusta
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
Vistas
Respuestas
Total de me gusta
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 |
Vistas
Respuestas
Total de me gusta
Thanks for your help guys.
Didn't think this was something we can request. How do you ask Adobe for this? Through neolane support?
Vistas
Respuestas
Total de me gusta
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.
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas