mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-10-09 20:34:31 -04:00
26 lines
516 B
Markdown
26 lines
516 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]
|
|
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 }}
|
|
```
|