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
Here is how you actually use this in your code. The library handles the math so you don't have to
Just open and save
If you want the easy way, just use open and save
importwimf# open a file and get a WIMFImage objectimg=wimf.open("photo.wimf")
# look at it using PILimg.pil.show()
# save it backwimf.save("copy.wimf", img.pil, quality=8)
Making it work with real stuff
If you do ML or actual work, you probably need arrays. We got you
# get a normal numpy arrayarr=img.to_numpy()
# get an opencv bgr arraycv_img=img.to_opencv()
Quick metadata check
If you just want to see who made the file without loading the pixels: