floem icon indicating copy to clipboard operation
floem copied to clipboard

Image api improvements

Open hydra opened this issue 4 months ago • 0 comments

While working with the img API I was frustrated to find that I had to create a vector of u8's even though I already had either a DynamicImage instance or PathBuf instance. e.g. when creating a new file (DynamicImage) or opening a file (PathBuf).

I also noted that img_dynamic visibility is pub(crate) which meant I could not use that either.

This PR adds three well-named methods (commit 1) and deprecates the old one (commit 2).

See commits/changes.

hydra avatar Sep 30 '24 15:09 hydra