Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Support additional CP thumbnail presets #8811

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

jacksleight
Copy link
Contributor

@jacksleight jacksleight commented Oct 5, 2023

I'm working on a project with a custom assets fieldtype that displays the preview image larger than 400px, so the default small thumbnail looks a bit fuzzy. The only alternative currently is to display the original file, but that could be huge.

This PR allows you to add extra CP thumbnail presets, for use by custom CP extensions/addons.

It does allow you to override the default small preset as well, as I couldn't really see any reason to prevent that. That could be useful if you just needed a slightly larger thumbnail and don't want to double up.

The config could make sense in either assets or cp. I went for cp but can change that if necessary.

@jacksleight jacksleight changed the title [4.x] Support additional CP thumbnail sizes [4.x] Support additional CP thumbnail presets Oct 5, 2023
@jasonvarga jasonvarga merged commit dfc7485 into statamic:4.x Oct 6, 2023
18 checks passed
@jacksleight jacksleight deleted the cp-thumbnail-sizes branch October 7, 2023 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants