# Image Annotator Using Web Viewer

**URL:** <https://the.fmsoup.org/t/image-annotator-using-web-viewer/4091>\
**Category:** Floating Topics\
**Tags:** web\_viewer, integration, images\
**Created:** [April 13, 2024, 4:16pm UTC](https://the.fmsoup.org/t/image-annotator-using-web-viewer/4091 "2024-04-13T16:16:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![greenflux](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/greenflux/32/3171_2.png) [@greenflux](https://the.fmsoup.org/u/greenflux)\
**Post date:** [April 13, 2024, 4:16pm UTC](https://the.fmsoup.org/t/image-annotator-using-web-viewer/4091/1 "2024-04-13T16:16:58Z")

</div>

Are there any good solutions for drawing on top of a background image from a container field?

I'm working on a web viewer that can draw on an image, but I'm supplying the image from a URL. I haven't figured out how to pass in an image from a container yet, or save the edited image.

Would this be useful for anyone, if I can get the rest working? Any tips on sending an image from a container to a web viewer?  
 ![2024-04-13 12.06.36](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/7/7d99fed9d9f50ace8f5276aecefd670dd9603f08.gif)

@Malcolm , thanks for the tip about storing the web viewer code in a text field outside of the layout!

---

<div class="post-metadata">

**Author:** ![samfmp](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@samfmp](https://the.fmsoup.org/u/samfmp)\
**Post date:** [April 14, 2024, 5:51pm UTC](https://the.fmsoup.org/t/image-annotator-using-web-viewer/4091/2 "2024-04-14T17:51:21Z")

</div>

You could base64 encode the data into base64 format and pass it into the webviewer

---

<div class="post-metadata">

**Author:** ![weetbicks](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/weetbicks/32/206_2.png) [@weetbicks](https://the.fmsoup.org/u/weetbicks)\
**Post date:** [April 14, 2024, 11:08pm UTC](https://the.fmsoup.org/t/image-annotator-using-web-viewer/4091/3 "2024-04-14T23:08:49Z")

</div>

@greenflux

here you go. This should help with code you can use to extract the image, failing that you could just use this 🙂

[ImageEditor.fmp12](https://the.fmsoup.org/uploads/short-url/o0sw8nzbuTDcUuXdDpqbc7W88Rs.fmp12) (328 KB)

---

<div class="post-metadata">

**Author:** ![greenflux](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/greenflux/32/3171_2.png) [@greenflux](https://the.fmsoup.org/u/greenflux)\
**Post date:** [April 14, 2024, 11:28pm UTC](https://the.fmsoup.org/t/image-annotator-using-web-viewer/4091/4 "2024-04-14T23:28:03Z")

</div>

@weetbicks thanks! I hadn't heard of Toast UI before. This library is way better than what I was using.
