# Can I use an image asset without having to transform it?

**URL:** <https://discourse.gohugo.io/t/can-i-use-an-image-asset-without-having-to-transform-it/13609>\
**Category:** support\
**Created:** [August 15, 2018, 3:24pm UTC](https://discourse.gohugo.io/t/can-i-use-an-image-asset-without-having-to-transform-it/13609 "2018-08-15T15:24:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zinefer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zinefer/32/6566_2.png) [@zinefer](https://discourse.gohugo.io/u/zinefer)\
**Post date:** [August 15, 2018, 3:24pm UTC](https://discourse.gohugo.io/t/can-i-use-an-image-asset-without-having-to-transform-it/13609/1 "2018-08-15T15:24:53Z")

</div>

It looks like I have to resize an image for it to be available to the app, is that true?

For example:

```auto
{{ $portrait := resources.Get "img/portrait.jpg" }}
<img class="logo" src="{{ $portrait.RelPermalink }}"/>

```

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [August 15, 2018, 5:19pm UTC](https://discourse.gohugo.io/t/can-i-use-an-image-asset-without-having-to-transform-it/13609/2 "2018-08-15T17:19:36Z")

</div>

I would not think so. Do you have an error using the code above?

Is the image in your `asset` directory?

---

<div class="post-metadata">

**Author:** ![zinefer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zinefer/32/6566_2.png) [@zinefer](https://discourse.gohugo.io/u/zinefer)\
**Post date:** [August 15, 2018, 5:36pm UTC](https://discourse.gohugo.io/t/can-i-use-an-image-asset-without-having-to-transform-it/13609/3 "2018-08-15T17:36:07Z")

</div>

There is no error but it produces a broken image tag.

The image is in the asset directory, that’s the only place I can put it that resources.Get seems to find it.

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [August 15, 2018, 5:41pm UTC](https://discourse.gohugo.io/t/can-i-use-an-image-asset-without-having-to-transform-it/13609/4 "2018-08-15T17:41:38Z")

</div>

🤔 hum… Works fine on one of my project.

> There is no error but it produces a broken image tag.

Are you sure of your tag syntax?

Could you try using `with`:

```auto
{{ with resources.Get "img/portrait.jpg" }}
<img class="logo" src="{{ .RelPermalink }}"/>
{{ end }}

```

Do you have a repo somewhere we could look at ?
