You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to populate data-image-regions=, if parsing image metadata on the front-end is good enough, one has to write a bit of boilerplate at the moment, as shown in the CodeSandbox:
We could then store the parsed metadata in the localstorage in order not to have to parse it again. We need to find a cheap way though to determine when what we have cached is stale.
The text was updated successfully, but these errors were encountered:
In order to populate
data-image-regions=
, if parsing image metadata on the front-end is good enough, one has to write a bit of boilerplate at the moment, as shown in the CodeSandbox:It would be nice to be able to pass a flag to the web-component telling it to do this for us, if
ImageDisplayControl.Parser
exists, i.e. if https://github.com/Frameright/image-display-control-metadata-parser has been loaded.Possible optimization / strech goal
We could then store the parsed metadata in the localstorage in order not to have to parse it again. We need to find a cheap way though to determine when what we have cached is stale.
The text was updated successfully, but these errors were encountered: