Kirby tag generates extra unnecessary files in media folder

Not sure if this expected behaviour or not and can be ignored but i noticed today that when using the Kirby image tag eg `(image: somefile.jpg)` in a text area field, i can see a bunch of job files getting generated in the media folder for various different image sizes and crops

Whilst the image tag works and outputs the image as expected, those jobs never get completed, i guess because those images never get requested. This means those jobs files just end up hang around forever. Here a screen shot of the folder

Is there are a reason for this or is a minor bug or something?

Hello, as far as I know that’s expected. Kirby doesn’t render thumbs right away, it writes a small job file for every size it creates a URL for, and only generates the image when that URL is actually requested. With srcset the browser picks one size, so the others just stay as jobs. They’re tiny JSON files, so harmless, but if it bugs you, trim the srcset sizes in your config to the ones you really need. Clearing the media folder is also safe, Kirby rebuilds what it needs.