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
If you're a developer and want more control, use the WIMFDecoder class. It lets you do some cool stuff like lazy loading or cropping giant images without wasting your RAM
Lazy Header Loading
Don't want to load 100MB of pixels just to see the tags? This class reads the JSON header instantly and stops there
fromwimfimportWIMFDecoder# only reads the headerdecoder=WIMFDecoder("huge_asset.wimf")
print(decoder.width, decoder.height)
print(decoder.metadata)
Region of Interest (ROI)
If you have a massive 16K image and you only need a tiny patch, don't decode the whole thing. This only touches the tiles you actually asked for
# get a 300x300 patch from the middlepatch=decoder.decode(roi=(500, 500, 300, 300))
Instant Mipmaps
Need a fast thumbnail? This skips the high-frequency passes and gives you a 1/2 or 1/4 size image almost instantly