Unwanted images being generated in Media folder

All the images on my site use the same config set up:

'thumbs' => [
	'presets' => [
		'avif' => ['width' => 788, 'height' => 788, 'quality' => 60, 'format' => 'avif'],
		'webp' => ['width' => 788, 'height' => 788, 'quality' => 80, 'format' => 'webp'],
		'default' => ['width' => 788, 'height' => 788, 'quality' => 80],
	]
]
<picture>
	<source 
		srcset="<?= $image->thumb('avif')->url() ?>" 
		type="image/avif">

	<source 
		srcset="<?= $image->thumb('webp')->url() ?>" 
		type="image/webp">

	<img 
		src="<?= $image->thumb()->url() ?>" 
		alt="<?= $image->alt() ?>" 
		width="788" 
		height="788" 
		loading="lazy">
</picture>

On launching the site I used the Total Validator app to create the generation of all the image in the Media folder. I check the Media folder and every image had three versions AVIF WEBP and JPEG resized to 788 and the appropriate quality. So all good.

However, I looked at the Media folder half-an-hour later, and most images now have a fourth version: a JPG resized to 1408px.

Screenshot 2024-09-19 at 9.47.34 AM

I don’t know why this version is being generated. I’ve done a search for “1408” across my site. The only mention is in a file here:

/kirby/src/Panel/Model.php
regarding sizes for panel cards and card lets, so this should not be the issue.

Any ideas why these jpg images are being created and resized?

If you use the panel, additional thumbnails will be created to show file previews.

1 Like

Okay… so thumbnails used in the Panel also go in the media > pages folder. I’d assumed the Panel thumbnails would go in the media > panel folder, but on looking inside that folder I see that is not the case.

… that explains it… thanks

1 Like