# QR Code is keeping the raw svg data even in an image column

**URL:** <https://community.glideapps.com/t/qr-code-is-keeping-the-raw-svg-data-even-in-an-image-column/80510>\
**Category:** Ask for Help\
**Created:** [March 5, 2025, 11:06am UTC](https://community.glideapps.com/t/qr-code-is-keeping-the-raw-svg-data-even-in-an-image-column/80510 "2025-03-05T11:06:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattGlides](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MattGlides](https://community.glideapps.com/u/MattGlides)\
**Post date:** [March 5, 2025, 11:06am UTC](https://community.glideapps.com/t/qr-code-is-keeping-the-raw-svg-data-even-in-an-image-column/80510/1 "2025-03-05T11:06:04Z")

</div>

Generated a QR Code from a template column:

 ![Screenshot 2025-03-05 130323](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/f/0f6d128d40da4cc63f15f10c5d2592c97d5194dd.png)

Tried sending this in an email and realised it keeps the raw svg data, so I wrote it to an image column to try generate a URL:

 ![Screenshot 2025-03-05 130310](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/1/e1f85f588e3af3f9f82bf48e0250448ecd82b385.png)

However it keeps the raw svg data, even if I copy the link with cntrl c to the image, it shows what its currently showing inside my template column to send in the email:

 ![Screenshot 2025-03-05 130303](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/5/0592a077be7a39293079a45a75c5b5a1786962e6.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 5, 2025, 11:57pm UTC](https://community.glideapps.com/t/qr-code-is-keeping-the-raw-svg-data-even-in-an-image-column/80510/2 "2025-03-05T23:57:34Z")

</div>

Please follow these steps.

 ![CleanShot 2025-03-06 at 06.56.26](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/6/16c36662571a72805a34a003f6ed0333ece1d151.png)

Add a JavaScript column to process the QR code into a useable format.

```auto
return decodeURIComponent(p1.split(',')[1]);

```

Then add a button/action to convert it to a Glide URL.

 ![CleanShot 2025-03-06 at 06.56.49](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/f/bf29f706a2312a122e7da05a29bc5ad574d02f23.png)
