PHPackages                             arnoson/kirby-auto-srcset - 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. arnoson/kirby-auto-srcset

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

arnoson/kirby-auto-srcset
=========================

Generate image srcset automatically

2.0.1(10mo ago)51281MITPHP

Since Nov 18Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/arnoson/kirby-auto-srcset)[ Packagist](https://packagist.org/packages/arnoson/kirby-auto-srcset)[ Docs](https://github.com/arnoson/kirby-auto-srcset)[ RSS](/packages/arnoson-kirby-auto-srcset/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Kirby Auto Srcset
=================

[](#kirby-auto-srcset)

A plugin for `Kirby 3` to generate an image srcset automatically. Based on `Processwire CMS` user `DaveP`'s forum [post](https://processwire.com/talk/topic/12036-responsive-image-breakpoints-with-field-templates/).

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

[](#installation)

```
composer require arnoson/kirby-auto-srcset

```

Usage
-----

[](#usage)

```
$srcset = $image->autoSrcset([
  'minWidth' => 300,
  'maxWidth' => 1024,
  'thumb' => [
    'format' => 'avif',
    'quality' => 80,
  ],
]);
```

This will create the min and max dimensions as well as the dimensions in between, trying to create the images in roughly 20kb file size steps.

Configuration
-------------

[](#configuration)

All options can be passed to `$file->autoSrcset()` directly or set in the config.

```
// your-template.php
$srcset = $image->autoSrcset([
  'minWidth' => 300,
  'maxWidth' => 1000,

  // in kb
  'fileSizeStep' => 20,

  // The maximum number of images to be created.
  'maxSteps' => 10,

  // An optional ratio that is used to crop the image.
  'ratio' => 16 / 9,

  // Options to pass to kirby's `$file->thumb()` method.
  'thumb' => [
    'quality' => 80,
    'format' => 'jpeg',
    'crop' => 'center',
    // ...
  ],
]);
```

```
// config.php
return [
  'arnoson/kirby-auto-srcset' => [
    'minWidth' => 300,
    'maxWidth' => 1000,
    // ...
  ],
];
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~421 days

Total

5

Last Release

316d ago

Major Versions

v0.1 → v1.0.02021-02-15

v1.1.0 → v2.0.02022-09-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d95ad9b77de39a85a0f39a1cc84535de5affc9aa1150862252681972f4215d9?d=identicon)[arnoson](/maintainers/arnoson)

---

Top Contributors

[![arnoson](https://avatars.githubusercontent.com/u/15122993?v=4)](https://github.com/arnoson "arnoson (7 commits)")[![AlexanderBoenninger](https://avatars.githubusercontent.com/u/56273185?v=4)](https://github.com/AlexanderBoenninger "AlexanderBoenninger (1 commits)")

### Embed Badge

![Health badge](/badges/arnoson-kirby-auto-srcset/health.svg)

```
[![Health](https://phpackages.com/badges/arnoson-kirby-auto-srcset/health.svg)](https://phpackages.com/packages/arnoson-kirby-auto-srcset)
```

###  Alternatives

[flokosiol/focus

Better image cropping for Kirby CMS

18265.1k](/packages/flokosiol-focus)[sylvainjule/annotator

Place pins / define zones on an image synced with a structure field

10915.2k](/packages/sylvainjule-annotator)[tobimori/kirby-thumbhash

Kirby Image placeholders with the smarter ThumbHash integration

378.1k1](/packages/tobimori-kirby-thumbhash)[sylvainjule/imageradio

Add illustrations to Kirby's radio buttons

5916.8k](/packages/sylvainjule-imageradio)[timnarr/kirby-imagex

Modern images for Kirby CMS – This plugin helps you orchestrate modern, responsive and performant images in Kirby

797.5k1](/packages/timnarr-kirby-imagex)[felixhaeberle/kirby3-webp

Kirby 3 CMS plugin for converting JPG, JPEG and PNG into much smaller WEBP – speed up your website!

397.5k](/packages/felixhaeberle-kirby3-webp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
