Twinside / Juicy.Pixels

Haskell library to load & save pictures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refine(cast) DynamicImage to specific Image

ingun37 opened this issue · comments

commented

Maybe I haven't read doc enough and if that's the case I'm sorry😭 but I can't find a way to refine DynamicImage to specific Image type, preferably using Lens?

I read HDR image using decodeHDR but it returns as DynamicImage. I want to refine it to ImageRGBF. How can I do it?

Side note: I feel bad asking trivial question in Issues. Maybe you guys should open up Github Discussion

commented

I'm currently using constructor matching