# Setting Host URL for Image References Generated by Label Studio Converter

**URL:** <https://community.labelstud.io/t/setting-host-url-for-image-references-generated-by-label-studio-converter/63>\
**Category:** Slack Archivist\
**Created:** [August 8, 2023, 6:55pm UTC](https://community.labelstud.io/t/setting-host-url-for-image-references-generated-by-label-studio-converter/63 "2023-08-08T18:55:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archivist](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Archivist](https://community.labelstud.io/u/Archivist)\
**Post date:** [August 8, 2023, 6:55pm UTC](https://community.labelstud.io/t/setting-host-url-for-image-references-generated-by-label-studio-converter/63/1 "2023-08-08T18:55:17Z")

</div>

**Lucca Huguet** : hello, i have a slight problem.

whenever I run `label-studio-converter import yolo -i ./ -o tasks.json` , the generated tasks.json ends up with the following image urls “[http://localhost:8080/data/local-files/?d=/myimagename.jpg](http://localhost:8080/data/local-files/?d=/myimagename.jpg)” and then I have to update every single image url in the tasks.json to “[http://localhost:8080/data/local-files/?d=images/myimagename.jpg](http://localhost:8080/data/local-files/?d=images/myimagename.jpg)”

my dir structure is the following:

![](https://canada1.discourse-cdn.com/flex035/uploads/labelstudio/original/1X/dcfc56f94dac2943b77450db8169915a11aaddf4.png)

**Chris Hoge (HumanSignal)**: Can you try with the flag

```auto
--image-root-url IMAGE_ROOT_URL

```

**Lucca Huguet** : thanks! is IMAGE\_ROOT\_URL supposed to be `<http://localhost:8080/data/local-files/?d=images/>`?

**Chris Hoge (HumanSignal)**: I believe so, I don’t have a lot of experience with the converter 🙂

**Lucca Huguet** : ok, this does work

still very hard-coded, but I guess better than having to add the string “images” to every single url

thanks!

**Chris Hoge (HumanSignal)**: I’m glad it worked!

**Note** : _This post was generated by the Label Studio Archive Bot from a conversation in the [Label Studio Slack](https://slack.labelstud.io/?source=discourse), a gathering place for the Label Studio community. Someone in the community thought this was worth sharing!_

_If this post answered a question for you, hit the Like button - we use that to assess which posts to put into docs._
