# Embedding image to log

**URL:** <https://forum.robotframework.org/t/embedding-image-to-log/2353>\
**Category:** Robot Framework\
**Created:** [31 August 2021 07:45 UTC](https://forum.robotframework.org/t/embedding-image-to-log/2353 "2021-08-31T07:45:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kolppanen](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@Kolppanen](https://forum.robotframework.org/u/Kolppanen)\
**Post date:** [31 August 2021 07:45 UTC](https://forum.robotframework.org/t/embedding-image-to-log/2353/1 "2021-08-31T07:45:38Z")

</div>

Hi!

Is it possible, using sikuli for image recognition to get the html log to show the image sikuli was looking for in case it fails finding it on the screen?

I know it’s possible to take a screenshot of the current state if a keyword/test fails and attach it to the log. Would the same be possible but instead of a screenshot you embed the image sikuli was using for comparison if said image can’t be found on screen.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [31 August 2021 13:03 UTC](https://forum.robotframework.org/t/embedding-image-to-log/2353/2 "2021-08-31T13:03:01Z")

</div>

Hi Oliver,

Are you using [this Sikuli library](https://github.com/rainmanwy/robotframework-SikuliLibrary)? see the screen shot at the end of the page, is this what you are asking for?

Dave.

---

<div class="post-metadata">

**Author:** ![Kolppanen](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@Kolppanen](https://forum.robotframework.org/u/Kolppanen)\
**Post date:** [1 September 2021 07:06 UTC](https://forum.robotframework.org/t/embedding-image-to-log/2353/3 "2021-09-01T07:06:29Z")

</div>

Hello and thank you for your answer damies.

Yes, that is the library we are using. Currently if sikuli for example manages to find and click an image, the picture it used for comparison is attached to the log. However if it fails/can’t find the image on the screen there are no images attached to the log only text/name of the picture.

So the possibilty of embedding images from the sikuli image folders exists but it doesn’t currently fire if/when keywords fail.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [1 September 2021 13:28 UTC](https://forum.robotframework.org/t/embedding-image-to-log/2353/4 "2021-09-01T13:28:09Z")

</div>

Hi Oliver,

Ah I see what you mean, Like you i’m just a user of this library, I’ve not seen the devs for this library on this forum so probably the best thing to do is raise a feature request issue and see what response you get. From looking at the github site it looks like it’s still being actively maintained with 5 issues resolved this year.

> **[Issues · rainmanwy/robotframework-SikuliLibrary](https://github.com/rainmanwy/robotframework-SikuliLibrary/issues)**
>
> Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli. - Issues · rainmanwy/robotframework-SikuliLibrary

Dave.
