# Feature Request: Option for adding whitespace around an image

**URL:** https://discourse.gohugo.io/t/feature-request-option-for-adding-whitespace-around-an-image/24788
**Category:** feature
**Created:** [April 16, 2020, 10:09am UTC](https://discourse.gohugo.io/t/feature-request-option-for-adding-whitespace-around-an-image/24788 "2020-04-16T10:09:12Z")
**Posts on this page:** 3
**Page:** 1

<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 16, 2020, 10:09am UTC](https://discourse.gohugo.io/t/feature-request-option-for-adding-whitespace-around-an-image/24788/1 "2020-04-16T10:09:12Z")

</div>

I am opening this topic to request an Image Processing option for adding whitespace around an image similar to the imageMagick flags `-extent` and `-gravity` see: [http://www.imagemagick.org/Usage/crop/#extent](http://www.imagemagick.org/Usage/crop/#extent)

This would be a useful feature to have for use from within Hugo along with the other [Image Processing Options](https://gohugo.io/content-management/image-processing/#image-processing-options).

From what I’ve seen there is a Go binding for imageMagick at: [https://github.com/gographics/imagick](https://github.com/gographics/imagick) (but I’m not sure if it would be wise to use it).

I’m not aware of another Go implementation that would make this request possible.

---

<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: [December 16, 2020, 7:03am UTC](https://discourse.gohugo.io/t/feature-request-option-for-adding-whitespace-around-an-image/24788/2 "2020-12-16T07:03:04Z")

</div>

I have decided to open the following GitHub issue hoping that perhaps someone might look into this.

> <https://github.com/gohugoio/hugo/issues/8057>
>
> A while back I opened this topic in the forum.
> This is a missing feature that causes me grief again and again.
> So...

This issue has been a sore point for me then and again as I have to generate the thumbnails outside Hugo but that is just not practical at all.

If anyone feels like participating in this discussion they can do so at the GitHub issue.

---

<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: [December 16, 2020, 7:03am UTC](https://discourse.gohugo.io/t/feature-request-option-for-adding-whitespace-around-an-image/24788/3 "2020-12-16T07:03:37Z")

</div>


