# Creating a QR code as picture

**URL:** <https://community.tulip.co/t/creating-a-qr-code-as-picture/11446>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [May 13, 2024, 2:38pm UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446 "2024-05-13T14:38:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisF](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@ChrisF](https://community.tulip.co/u/ChrisF)\
**Post date:** [May 13, 2024, 2:38pm UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446/1 "2024-05-13T14:38:00Z")

</div>

Hi all,  
I need an advice:  
how can I create a picture of a QR code from the barcode widget after google removed the API solution?  
I like to store a picture of the generated QR code in a Tulip table too.

Regards Chris

---

<div class="post-metadata">

**Author:** ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)\
**Post date:** [May 14, 2024, 12:36pm UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446/2 "2024-05-14T12:36:28Z")

</div>

I was thinking if there is a way to create a copy of an image from the web.  
Its easy to use another QR-code-API, but handling the image URL will always reference the original API-URL and will not create a copy.  
This keeps the risk of that service stops being continued (as google !)

* * *

> [@thorsten.langner](#):
>
> a way to create a copy of an image from the web.

Save image and the load from lokal space is a way but I meant an automatic way, by trigger logic…

---

<div class="post-metadata">

**Author:** ![Richard-SNN](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/richard-snn/32/1166_2.png) [@Richard-SNN](https://community.tulip.co/u/Richard-SNN)\
**Post date:** [May 14, 2024, 3:09pm UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446/3 "2024-05-14T15:09:03Z")

</div>

With the caveat I haven’t tried doing QR codes myself using Labelary it does appear to be possible and you can integrate using the custom widget.

> **[ZPL Viewer Widget Unit Test | Frontline Operations Platform](https://library.tulip.co/apps/zpl-viewer-widget-unit-test)**
>
> The ZPL Viewer Widget Unit Test adds a Zebra Programming Language (ZPL) Viewer widget that can be used across all of your apps. Enter ZPL code and view it as an image to preview labels before you print, or print ZPL labels on a non-ZPL printer. The...

And the actual API:

> **[Labelary ZPL Web Service](https://labelary.com/service.html)**
>
> Online RESTful web service for easy conversion of ZPL code to PNG images or PDF files.

---

<div class="post-metadata">

**Author:** ![ChrisF](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@ChrisF](https://community.tulip.co/u/ChrisF)\
**Post date:** [May 15, 2024, 6:27am UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446/4 "2024-05-15T06:27:59Z")

</div>

Thanks Richard,

I’m using the zpl viewer widget all the time to preview the labels printed by our Zebra printers.

With the API I can run it as a connector and it results an png, but I don’t know how to configure the result output inside the connector to store the png into a variable.

Regards Chris

---

<div class="post-metadata">

**Author:** ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)\
**Post date:** [May 15, 2024, 7:41am UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446/5 "2024-05-15T07:41:26Z")

</div>

You can put your URL to call the API directly into an Image-URL Variable.

With ZPL e.g.: `https://api.labelary.com/v1/printers/12dpmm/labels/0.9x0.9/0/%5EXA%5EFO10,0,0%5EBQN,2,10,Q,7%5EFDHello%20World%5EXZ`  
However, if you only use it to create an QR code, you can use easier to use, more flexible API’s as well.

However, the availability of that image will be dependent on the availability of the service.

---

<div class="post-metadata">

**Author:** ![ChrisF](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@ChrisF](https://community.tulip.co/u/ChrisF)\
**Post date:** [May 15, 2024, 2:40pm UTC](https://community.tulip.co/t/creating-a-qr-code-as-picture/11446/6 "2024-05-15T14:40:25Z")

</div>

Thanks Thorsten,

it took a little bit to understand this and bring it to work, but now it works.

Maybe there will be an internal solution in the future…

Regards Chris
