PHPackages                             rasteiner/k3-image-tag - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. rasteiner/k3-image-tag

ActiveKirby-plugin[Image &amp; Media](/categories/media)

rasteiner/k3-image-tag
======================

An (image: ...) tag that resizes the image.

0.0.0(7y ago)215MITPHP

Since Feb 15Pushed 7y ago2 watchersCompare

[ Source](https://github.com/rasteiner/k3-image-tag)[ Packagist](https://packagist.org/packages/rasteiner/k3-image-tag)[ RSS](/packages/rasteiner-k3-image-tag/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

For Kirby v.3.

This plugin replaces the default `(image: ...)` tag with a version that resizes the image to a maximum size specified in your `config.php`. It also allows you to redefine the generated HTML code via a snippet.

Installation
------------

[](#installation)

### Download

[](#download)

Download and copy this repository to `/site/plugins/k3-image-tag`.

### Git submodule

[](#git-submodule)

```
git submodule add https://github.com/rasteiner/k3-image-tag.git site/plugins/k3-image-tag

```

### Composer

[](#composer)

```
composer require rasteiner/k3-image-tag

```

Setup
-----

[](#setup)

### Example for simply resizing the image:

[](#example-for-simply-resizing-the-image)

`site/config/config.php`:

```
return [
  'imagetag' => [
    'max-width': 1400
  ]
];
```

### Example snippet for a custom snippet:

[](#example-snippet-for-a-custom-snippet)

`site/config/config.php`:

```
return [
  'imagetag' => [
    'snippet': 'imagetag'
  ]
];
```

`site/snippets/imagetag.php`:

```
