Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image api improvements #605

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

hydra
Copy link
Contributor

@hydra hydra commented Sep 30, 2024

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.

@charlescgs
Copy link

Hello, any particular reason this PR cannot be merged?

@jrmoulton
Copy link
Collaborator

@charlescgs

Hello, any particular reason this PR cannot be merged?

It hasn't passed CI and typically won't be reviewed until it does.

I do think though that we don't want to deprecate the img function. I think we can leave it as it is and just add the two new functions. Final approval is from dzhou121 though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants