# Error with imageConfig: image: unknown format

**URL:** <https://discourse.gohugo.io/t/error-with-imageconfig-image-unknown-format/28985>\
**Category:** support\
**Created:** [October 22, 2020, 8:28pm UTC](https://discourse.gohugo.io/t/error-with-imageconfig-image-unknown-format/28985 "2020-10-22T20:28:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [October 23, 2020, 5:33am UTC](https://discourse.gohugo.io/t/error-with-imageconfig-image-unknown-format/28985/8 "2020-10-23T05:33:04Z")

</div>

Have a read through this topic: [How do I turn a genericResource into an image?](https://discourse.gohugo.io/t/how-do-i-turn-a-genericresource-into-an-image/28921/) to see if it’s any help.

Edit:

It may be your svg images:

```auto
{{ with $image }}
{{ if (eq .MediaType.SubType "svg") }}
  {{ warnf "%q" .Permalink }}
{{ else }}
  {{ .ResourceType }} || {{ .MediaType.SubType}} || {{.Width}}
{{ end }}
{{ end }}

```

Also: [https://github.com/gohugoio/hugo/issues/3700](https://github.com/gohugoio/hugo/issues/3700)

---

_[View the full topic](https://discourse.gohugo.io/t/error-with-imageconfig-image-unknown-format/28985)._
