The field value doesn’t provide the url to the file, so you would have to either serve the files directly from the content folder instead of from the media folder, or make the connection between the field value and the images in the page (by querying the images of the page), see https://kql.getkirby.com/ (then add the filename to the images query).
Must admit that I’m not really familiar with KQL. And I think there will be improvements to image handling once KQL makes it into the Kirby core.
The THUMBSERVER works on my uberspace account but also with your include it does not work on my local machine. There is a change now it takes a long time the server is responsive again but it does not crash anymore.
You might need to set the bin location on your local config depending on how you installed imagemagick. For example, i use Valet as a local server and installed image magic via homebrew.
Since this installs IM to a nonstandard location that would be expected on a real websever, you need to set the bin option to tell Kirby were to find the IM binary. If you pull up a terminal and run the following command:
It will print the location of the IM binary, which for me is /opt/homebrew/bin/convert
then in your config, decalare this in the thumbs settings.
I’ve followed your instructions same issue. I also do not think it’s a matter of the location of IM because the thumbs are generated and can be found in the folder. They do just not open and the server crashes.
I did not manage to geht the FileInfo extension of php to install. Maybe this is the problem?