# Image Processing help

**URL:** <https://discourse.gohugo.io/t/image-processing-help/26693>\
**Category:** support\
**Created:** [July 3, 2020, 8:13pm UTC](https://discourse.gohugo.io/t/image-processing-help/26693 "2020-07-03T20:13:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAGwar1905](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@JAGwar1905](https://discourse.gohugo.io/u/JAGwar1905)\
**Post date:** [July 3, 2020, 8:13pm UTC](https://discourse.gohugo.io/t/image-processing-help/26693/1 "2020-07-03T20:13:48Z")

</div>

`<img src="{{.Params.Image | absURL }}" alt="{{.Site.Params.author}}" class="img-fluid rounded float-left mr-5 mb-4">`

Trying to resize the image referred to by this

` {{ $image := $resource.Fit "300x600" }}`

Not sure how to plugin this to that

Any help would be great

---

<div class="post-metadata">

**Author:** ![divinerites](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/divinerites/32/12625_2.png) [@divinerites](https://discourse.gohugo.io/u/divinerites)\
**Post date:** [July 4, 2020, 2:02am UTC](https://discourse.gohugo.io/t/image-processing-help/26693/2 "2020-07-04T02:02:42Z")

</div>

You mix images in static called by html and resources transformations. Will not work.

- put image in `assets/images`
- use this as a resource
- untested code :

```auto
{{ $path := .Params.Image }}
{{ $original := resources.Get $path }}
{{ $image := $original.Fit "300x600" }}
<img src="{{ $image.RelPermalink }}">

```

See [https://gohugo.io/content-management/image-processing/](https://gohugo.io/content-management/image-processing/)

---

<div class="post-metadata">

**Author:** ![JAGwar1905](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@JAGwar1905](https://discourse.gohugo.io/u/JAGwar1905)\
**Post date:** [July 4, 2020, 2:07am UTC](https://discourse.gohugo.io/t/image-processing-help/26693/3 "2020-07-04T02:07:39Z")

</div>

Yes, I have been reading that but not understanding how to make it work with what I have.

Don’t really understand sorry I am new at this.

---

<div class="post-metadata">

**Author:** ![divinerites](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/divinerites/32/12625_2.png) [@divinerites](https://discourse.gohugo.io/u/divinerites)\
**Post date:** [July 4, 2020, 2:12am UTC](https://discourse.gohugo.io/t/image-processing-help/26693/4 "2020-07-04T02:12:09Z")

</div>

did you try my code ?
