I recently released a new version of my site where I utilise the medium format provided by the media library. To my surprise it was sometimes missing.
It turns out that some formats are not generated if Strapi deems it unnecessary. Although I understand the sentiment I think that it makes for a so-so API. We now have to add a fallback in case the desired format is not present.
How about always providing
large? In the case that the image is too small to be in a certain size I propose you use the original url instead. That way the API stays consistent and extra image processing isn’t made.