Resizer icon indicating copy to clipboard operation
Resizer copied to clipboard

An image resizing library for Android

Results 9 Resizer issues
Sort by recently updated
recently updated
newest added

I tried resizing animated webp but the result webp is not animating. val resizedImage = Resizer(this) .setTargetLength(512) .setQuality(100) .setOutputFormat("WEBP") .setOutputFilename("result") .setOutputDirPath(outputPath) .setSourceImage(File(inputPath)) .resizedFile

The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling |...

java.lang.OutOfMemoryError: Failed to allocate a 63489036 byte allocation with 16776592 free bytes and 58MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:882) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:858) at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:478) at me.echodev.resizer.util.ImageUtils.getScaledBitmap(ImageUtils.java:34)...

Image taken in portrait mode after resized became improper orientation

``` : Attribute application@supportsRtl value=(false) from AndroidManifest.xml:23:9-36 is also present at [com.github.hkk595:Resizer:v1.5] AndroidManifest.xml:14:9-35 value=(true). Suggestion: add 'tools:replace="android:supportsRtl"' to element at AndroidManifest.xml:15:5-68:19 to override. ``` Right now I use tools:replace="android:supportsRtl" as...

Here's a module for compressor ```kotlin @Module class CompressorModule { @Provides @Singleton fun provideCompressor(context: Context) = Resizer(context) .setTargetLength(1000) .setQuality(75) .setOutputFormat("JPEG") .setOutputFilename(UUID.randomUUID().toString()) .setOutputDirPath(context.getExternalFilesDir(Environment.DIRECTORY_PICTURES)!!.absolutePath) } ``` And here's how we use it:...