Roughsketch / imagesize

Quickly probe the size of various image formats without reading the entire file.
MIT License
57 stars 12 forks source link

support for hdr/exr/ktx2/dds/tga/qoi #24

Closed AllenDang closed 1 year ago

AllenDang commented 1 year ago

This crate is super useful! I'm creating a image viewer, and might need those formats, I'll create a PR to help, :)

AllenDang commented 1 year ago

It's done, pls review the PR

Roughsketch commented 1 year ago

Quick update:

I've gone through and tidied up several of the implementations from the PR, most important of which was making TGA not have so many false positives. I actually had an instance during all this were it was detecting certain HEIF files as TGA so that's no longer happening now.

If you want to look over the implementation it's here. Basically just the corroborating checks I mentioned in the initial PR.

Going to fuzz over this and then I'll likely release v0.12 later tonight.

Roughsketch commented 1 year ago

Sorry for this but I think I'm going to delay it a bit longer. I started working on PNM support (#14) and it's like 99% done, just need to handle the no newline case. Want to avoid releasing 0.12 and then having to minor bump immediately after due to another forward facing API change.

Roughsketch commented 1 year ago

0.12.0 is released now, so going to close this. Thanks again!