Is there a method like inferRemoteSize() for images in the /public directory?
The docs say no, but here's the thing.
- My CMS (Tina CMS) allows me to define only one assets folder and
/pubicis most useful for that, as the assets (including files that are not images) are supposed to be copied 1:1 to the build. - Everything so far works great, but this way we need to manually enter image dimensions to avoid cumulative layout shift (CLS). This is prone to error.
inferRemoteSize()works with remote images, so I figured maybe there's a way to let it access the/publicdirectory?