I wan’t to find some good solution to generating all thumbs in background. The problem i have since i’ve switched to multiple filetypes + responsive resolutions is that thumbs are very pretty slow even on my quite beefy server and it just looks wrong when you have x images that are not showing up.
If i understand it correctly right now whenever the thumbs function is called it creates .jobs inside media folder and existence of this file “approves” the thumb for creation so when the matching request is made kirby will create the thumb. (safety measure so anyone cannot just kill your server with requests to image versions)
Even if somebody visits the page they will create just few of the all possible thumb combinations.
So i want way to keep creating these .jobs in background until there aren’t any. Maybe it doesn’t have to be queue just some recursive function in page hook (that would probably have problems with timeouts). But in any case i would need function “getMediaJobAndCreateThumbnail”
I think this is going to be pretty common issue once people start hopping onto the multifile .avif train. avif takes ages