---
title: Resizing images for devices
related:
  - https://docs.kentico.com/k82/developing-websites/developing-websites-for-mobile-devices/creating-device-profiles.md
  - https://docs.kentico.com/k82/configuring-kentico/configuring-page-urls/linking-pages-and-files.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

You can configure the system to automatically resize images to match the dimensions of [device profiles](https://docs.kentico.com/k82/developing-websites/developing-websites-for-mobile-devices/creating-device-profiles.md):

1. Open the **Settings** application.
2. Select the **Content -> Content management** category.
3. Enable the **Resize images according to device profile** setting.
4. Click **Save**.

When a user views the website on a device that matches a certain profile, images automatically _reduce_ their maximum side size to the larger of the dimensions set for the given profile.

To change the dimensions of device profiles:

1. Open the **Device profiles** application.
2. Edit () a profile.
3. Set the **Preview width** and **Preview height** properties (the values are in pixels).
4. Click **Save**.

> **Note:** **Note**: The resizing only works for images loaded through one of the Kentico system pages (getattachment, getmetafile, getmedia, etc.). Device profile resizing does not work for images that use web links or direct paths in their source.

## Disabling the resizing for individual images

If you wish to disable device profile resizing for an image, add the **resizemode=1** query string parameter to the image source URL.

For example:

```xml

<img src="~/getattachment/Community/Blogs/LargeImage.png.aspx?width=800&resizemode=1">

```
