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

Image Preview in Structure Field uses full image size #2039

Closed
thathoff opened this issue Aug 26, 2019 · 3 comments
Closed

Image Preview in Structure Field uses full image size #2039

thathoff opened this issue Aug 26, 2019 · 3 comments
Assignees
Labels
type: enhancement ✨ Suggests an enhancement; improves Kirby
Milestone

Comments

@thathoff
Copy link
Contributor

When using images in a structure the preview uses the original file instead of the resized image (eg. used in the files list). So creating structures with a some large images (eg. 10mb, 4000x6000 pixels each) will make the panel very slow.

Maybe I haven’t found the right option but event settings the image property with the option size: tiny for this column the panel still uses the large image.

@texnixe
Copy link
Member

texnixe commented Aug 26, 2019

You could create your own files field preview as a workaround:

https://getkirby.com/docs/reference/plugins/extensions/field-previews

@thathoff
Copy link
Contributor Author

Yes I've thought about this, too (sorry for not mentioning it in the issue). Maybe we’ll fix it this way until it’s fixed in Kirby. Thank you!

@bastianallgeier
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement ✨ Suggests an enhancement; improves Kirby
Projects
None yet
Development

No branches or pull requests

4 participants