Convert JPEG-XR to png
from PIL import Image
import imagecodecs
with open("hdphoto1.wdp", "rb") as f:
raw = f.read()
arr = imagecodecs.jpegxr_decode(raw) # handles Y-only, 16-bit
img = Image.fromarray(arr)
img.save("hdphoto1.png")
from PIL import Image
import imagecodecs
with open("hdphoto1.wdp", "rb") as f:
raw = f.read()
arr = imagecodecs.jpegxr_decode(raw) # handles Y-only, 16-bit
img = Image.fromarray(arr)
img.save("hdphoto1.png")