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

Pass the optimization percentage as per requirement #7

Open
govind2517 opened this issue May 8, 2024 · 0 comments
Open

Pass the optimization percentage as per requirement #7

govind2517 opened this issue May 8, 2024 · 0 comments

Comments

@govind2517
Copy link

As per given documentation, I can see that we have image function as below.

IVSize customRes=new IVSize();
customRes.setWidth(400);
customRes.setHeight(300);
compressor.resizeImageWithCustomRes(file.getBytes(),ImageFormats.JPEG,customRes);

But while implementing I found that we can have requirement like resize the image, and also need to optimize it at some extent.
for eg. compress image to 80% or 50% of the original image size.
So we need less storage space to save that image, because as of now we can HD images which can be compressed as per business usecase.

@SrikanthReddyyy Can you please confirm on this, if I can start to implement this feature under IVCompressor library.
Where as I will create new function which will accept targetWidth and targetHeight and Compression percentage in form on float like 0.8 for 80% and 0.5 as 50%.
I will be happy to contribute you as it's helped me a lot for video optimization.

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