I asked myself where are the settings for these sizes saved and how can I edit them?
352px, 864px and 1408px…
I search the repo on github and found this:
This tells me that whenever I have a card layout for my images that I get these three sizes saved.
That also makes sense why I don’t have these sizes for all of my images.
What I now need is the generation of custom sizes on upload, because I can’t use src-set kirbytags in my headless setup. So how can I trigger resizing on upload and afterwards having access to these files via REST API?
It would be crucial for me to have control over image sizes.
I think that is indeed what I need. The resizing on upload.
I already have better-rest in use, but I don’t see no effect.
But I did search a bit in the source code of better-rest and realized that he just creates new endpoints where ->resize() is used. So I am currently building my own endpoint with custom resizes, which should work as well.
Anyway the creation on upload is supercool.
I will see if it works for me.