mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
7fd64f19c8
It's a beautiful thing. A thousand thanks, Bud. See PR rdwatters/hugo-docs-concept#118
29 lines
554 B
Markdown
29 lines
554 B
Markdown
---
|
|
title: imageconfig
|
|
linktitle: imageConfig
|
|
description: Parses the image and returns the height, width, and color model.
|
|
godocref:
|
|
date: 2017-02-01
|
|
publishdate: 2017-02-01
|
|
lastmod: 2017-02-01
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: "functions"
|
|
tags: [images]
|
|
ns:
|
|
signature: ["imageConfig PATH"]
|
|
workson: []
|
|
hugoversion:
|
|
relatedfuncs: []
|
|
deprecated: false
|
|
---
|
|
|
|
`imageConfig` parses the image and returns the height, width, and color model.
|
|
|
|
```golang
|
|
{{ with (imageConfig "favicon.ico") }}
|
|
favicon.ico: {{.Width}} x {{.Height}}
|
|
{{ end }}
|
|
```
|