IVCompressor icon indicating copy to clipboard operation
IVCompressor copied to clipboard

Pass the optimization percentage as per requirement

Open govind2517 opened this issue 1 month ago • 0 comments

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.

govind2517 avatar May 08 '24 17:05 govind2517