In the reference for $file->thumb()
, https://getkirby.com/docs/reference/file/thumb, options are mentioned. Is there a place where I can find the allowed options?
I think they are for the darkroom
helper: https://github.com/getkirby/kirby/blob/c30f882ca5cbd17dbcf47b7c61cd540d3a55c663/src/Image/Darkroom.php#L37
Thanks Bart, that’s a great start!
But it there a place in the documentation explaining how these options are supposed to work? Thinking about cropping, resizing, giving only width or height letting Kirby calculate the rest?
Does this help better: https://getkirby.com/docs/guide/templates/resize-images-on-the-fly ?
Yes, that’s helpful. It’s missing some use cases I have in mind – I’ll post seperate questions, if needed.
Thanks again for your help, @bvdputte!
@bastianallgeier + @texnixe: Is there a way to link things like this in the reference?
I think they’ve waited to add links in the code blocks because of the URL’s that was going to be changed once the new website went live. But maybe they can be added now, as I see benefit in those as well
Maybe it’s possible to automate these links in case they are shared between different classes (image
and thumb
in this case)?
Yes, there’s still stuff to do in the docs. It helps if you create issues on Github for what you are missing for us to keep track.