---
title: "imgResource"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:guide-imgresource@main"
source: "Guide/TypoScriptFunctions/ImgResource/Index.rst"
rendered: "2026-09-29T15:38:34+00:00"
---

# imgResource {#guide-imgresource}

The [imgResource](https://docs.typo3.org/permalink/t3tsref:imgresource@main) function relates to modifications of
pictures. Its main usage is the property `file` of the
[IMAGE](https://docs.typo3.org/permalink/t3tsref:cobj-image@main) object.

This, for example, allows an image to be resized:

**EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript**

```typoscript
temp.myImage = IMAGE
temp.myImage {
  file = toplogo.gif
  file.width = 200
  file.height = 300
}

```

It is also possible to set minimum or maximum dimensions:

**EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript**

```typoscript
temp.myImage = IMAGE
temp.myImage {
  file = toplogo.gif

  # maximum size
  file.maxW = 200
  file.maxH = 300

  # minimum size
  file.minW = 100
  file.minH = 120
}

```

`imgResource` also provides direct access to
ImageMagick/GraphicsMagick features:

**EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript**

```typoscript
temp.myImage = IMAGE
temp.myImage {
  file = toplogo.gif
  file.params = -rotate 90
}

```
