Is there any open source library available in android for image resizing?

I want to know if there are open source libraries available for image resizing on Android. Because in my application, I used a camera to capture an image. Supported image sizes differ from device to device. So, here I used the largest device size, for example HTC Wildfire has 19 sizes, I used 2592x 1952 (WxH). Here I want to resize an actual 250x250 image without losing or stretching the image. I searched google and StackOverflow, I got this Thumbnailator and imgscalr solutionunfortunately i cant implement in my app (i dont know what android supports it, if so then kindly post the solution how can i implement). When I add ThumNailator folder to / libs folder and add this piece of code to my code,

            Thumbnails.of(new File(sdRoot + dir + fileName).listFiles())
                    .size(100, 100).outputFormat("JPEG")
                    .outputQuality(0.85)
                    .toFiles(Rename.PREFIX_DOT_THUMBNAIL);

      

it shows notification like "The type java.awt.image.BufferedImage cannot be resolved. It is indirectly referenced from required .class files"

. How can I resize the captured image with my custom size.

+1
android android-image


source to share


No one has answered this question yet

See similar questions:

3
Resize images while maintaining quality in Android

or similar:

947
Android Studio: add jar as library?
784
How do I add a library project to Android Studio?
614
Where can I find Android source code online?
559
Android Network Libraries Comparison: OkHTTP, Retrofit and Volleyball
526
How to open Google Play Store directly from Android app?
521
Determine if Android has internet access
507
Android: combining text and image on Button or ImageButton
306
How do I resize a bitmap on Android?
3
Are Android AppWidgets limited to specific sizes?
1
How to remove image from android gallery after camera shot taken with Delphi



All Articles
Loading...
X
Show
Funny
Dev
Pics