Sorry, we don't support your browser.  Install a modern browser

Option for panel image sizes

I have often encountered the problem that the panel image sizes are not what I need. For example, I often use the table layout and display the preview images much larger there. However, this is not ideal due to the fixed thumbnail sizes of the panel.

Of course, it makes sense for the panel to have its own image sizes. But very often I find these unnecessary because I already use similar sizes in the front end, which results in an unnecessary number of thumbnails being generated.

That is the standard, for example:

$sizes = match ($layout) {
  'cards' => [352, 864, 1408],
  'cardlets' => [96, 192],
  default => [38, 76]
};

I am currently hacking each instance, which you really shouldn’t do, to change the values to ones that are closer to my standard values.

$sizes = match ($layout) {
  'cards' => [500, 1000, 1600],
  'cardlets' => [100, 200],
  default => [50, 100]
};

Would it be possible to add an global option for this in config.php to override? I think many instances could benefit from it. Very few users will use a 96-pixel-wide thumbnail in the front end, for example.

3 months ago