# Resize image from static folder

**URL:** <https://discourse.gohugo.io/t/resize-image-from-static-folder/14453>\
**Category:** support\
**Created:** [September 27, 2018, 2:27pm UTC](https://discourse.gohugo.io/t/resize-image-from-static-folder/14453 "2018-09-27T14:27:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kss/32/5764_2.png) [@kss](https://discourse.gohugo.io/u/kss)\
**Post date:** [September 27, 2018, 2:27pm UTC](https://discourse.gohugo.io/t/resize-image-from-static-folder/14453/1 "2018-09-27T14:27:39Z")

</div>

hi

I bet I was reading somewhere that from some Hugo version its now possible to resize images that are stored in static folder. However I can not find it anymore, neither in documentations or on forum.

Do I remember it wrong ?  
Tnx.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [September 27, 2018, 2:49pm UTC](https://discourse.gohugo.io/t/resize-image-from-static-folder/14453/2 "2018-09-27T14:49:49Z")

</div>

There are 2 ways to do this:

1. In your config you can enter `assetDir = "static"`

OR

1. Create a symlink of `/static/` or any of its subfolders under `/assets/`

---

<div class="post-metadata">

**Author:** ![kss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kss/32/5764_2.png) [@kss](https://discourse.gohugo.io/u/kss)\
**Post date:** [September 28, 2018, 2:35pm UTC](https://discourse.gohugo.io/t/resize-image-from-static-folder/14453/3 "2018-09-28T14:35:35Z")

</div>

Tnx a lot. Working as expected 🙂

For google searchers here fast example. Put file in `/assets/images/image.jpg`. Then:

```
{{ $img := resources.Get “images/image.jpg” }}
{{ with $img }}
  <img src="{{ (.Fill “440x280”).Permalink }}" />
{{ end }}
```

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [April 29, 2019, 3:00pm UTC](https://discourse.gohugo.io/t/resize-image-from-static-folder/14453/5 "2019-04-29T15:00:50Z")

</div>

> [@flips](#):
>
> I guess I need a coffee break

No. You need to do the following:

A. Read the [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132) and then open a new Support Ticket explaining the issue while sharing the source code of your project.

B. Never ask, in an already solved support ticket from 7 months ago.

Thanks

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [April 29, 2019, 3:00pm UTC](https://discourse.gohugo.io/t/resize-image-from-static-folder/14453/6 "2019-04-29T15:00:54Z")

</div>

Closed on April 29, 2019, 3:00pm UTC


