# Is there a way to make a compiled file show picture of game?

**URL:** <https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720>\
**Category:** ChoiceScript Help\
**Created:** [December 21, 2016, 10:56am UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720 "2016-12-21T10:56:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![boredhypocrite](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/boredhypocrite/32/18168_2.png) [@boredhypocrite](https://forum.choiceofgames.com/u/boredhypocrite)\
**Post date:** [December 21, 2016, 10:56am UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720/1 "2016-12-21T10:56:01Z")

</div>

As title says I have been trying to make a compiled file show game cover picture but I can’t.

Anyone know how? If so can you show a step by step? Thanks.

I tried to search the forum using my phone, but no hits on the search bar. I did find this [Pictures not showing up in compiled version](https://forum.choiceofgames.com/t/pictures-not-showing-up-in-compiled-version/2067) but it old like 2014. Perhaps now it possible? 😞

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [December 21, 2016, 11:35am UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720/2 "2016-12-21T11:35:23Z")

</div>

In the new version of CSIDE you can import images as data URIs.

To do this manually, grab an image and run it through an image to data URI convertor, such as:  
[https://websemantics.uk/tools/image-to-data-uri-converter/](https://websemantics.uk/tools/image-to-data-uri-converter/)

(There’s loads on the web, just Google).

Once you have your base64 data uri (a HUGE string of random characters), create a new scene file in your project. Name this scene file my\_image.txt and paste in the data uri. Before the data uri type \*image … So it’s essentially \*image my\_data\_uri.  
After the data uri, on a new line, place a \*return.

Now you can do \*gosub\_scene my\_image.txt wherever you want this image to appear. As long as you include this file during compilation it will also work in a compiled game 🙂

Downside: there’s a slight overheard in terms of image size, I think it’s typically a 33% increase on the original image size for data URIs.

---

<div class="post-metadata">

**Author:** ![boredhypocrite](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/boredhypocrite/32/18168_2.png) [@boredhypocrite](https://forum.choiceofgames.com/u/boredhypocrite)\
**Post date:** [December 21, 2016, 11:42am UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720/3 "2016-12-21T11:42:00Z")

</div>

Yay! 😁 That is what I’m looking for. Thanks much for the solution. Finally, I not mind the increase on the original image size for data URIs. I just want image to work properly.

Once again thank you very much, I’ve been whacking my brains for solution or ways. I can’t think of nothing. I say what you’ve given is my best solution to my dilemma. 🙇‍♂️

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [December 21, 2016, 5:05pm UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720/4 "2016-12-21T17:05:48Z")

</div>

Alternatively simply stick them in the same folder as the HTML. That is if your game is located at:  
`http://retowers.neocities.org/Game Name/Game Name.html`  
Then your image should be:  
`http://retowers.neocities.org/Game Name/image_name.html`

---

<div class="post-metadata">

**Author:** ![boredhypocrite](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/boredhypocrite/32/18168_2.png) [@boredhypocrite](https://forum.choiceofgames.com/u/boredhypocrite)\
**Post date:** [December 21, 2016, 5:28pm UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-make-a-compiled-file-show-picture-of-game/22720/5 "2016-12-21T17:28:06Z")

</div>

I’m not using neocites, I’m using the GitHub which makes errors if I add an image file to my HTML folder file. But that tip is good if I ever switch to neocites 👍
