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

Is shrink-on-load available? #19

Open
shotnothing opened this issue Jul 25, 2024 · 1 comment
Open

Is shrink-on-load available? #19

shotnothing opened this issue Jul 25, 2024 · 1 comment

Comments

@shotnothing
Copy link

E.g. In c:

tjDecompress2(
    decompressor, jpegBuf, jpegSize, imgBuf, width, 0, height, TJPF_RGB, 
    TJFLAG_FASTDCT | scaling factor // here, efficient shrinking by multiples of 2
);
@honzasp
Copy link
Owner

honzasp commented Aug 1, 2024

No, but feel free to open a PR that adds this feature :) Note that this crate uses TurboJPEG version 3, which has a different API for scaling during decompression (tj3SetScalingFactor()).

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

2 participants