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

API to create a JPEG from scratch #4

Open
maghoff opened this issue Aug 10, 2021 · 0 comments
Open

API to create a JPEG from scratch #4

maghoff opened this issue Aug 10, 2021 · 0 comments

Comments

@maghoff
Copy link

maghoff commented Aug 10, 2021

As a learning effort, I'm creating a JPEG encoder from scratch. It's very valuable for me to be able to use this crate for the file format aspect, so I can concentrate on the core JPEG compression instead. Thanks!

However, I cannot find an API to create a Jpeg instance from scratch, I can only find from_bytes. Would it be valuable to have Jpeg::new() (and should it have any parameters) or Jpeg::from_segments(segments: Vec<JpegSegment>) or something similar?

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

No branches or pull requests

1 participant