Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

An android image compression library.

Results 120 Compressor issues
Sort by recently updated
recently updated
newest added

While adding the maven dependency i am getting the below error message. please suggest me to resolve the dependency. id.zelory compressor 3.0.1 Could not find artifact id.zelory:compressor:jar:3.0.1 in central (https://repo.maven.apache.org/maven2)...

I have used it according to the documentation but when am compressing image to a specific size like 2mb it will not compress image exact to 2mb. It will give...

Caused by java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.app.aexdriver.dev/files/Pictures/Camera/IMG_20220922_083206_502.jpg: open failed: ENOENT (No such file or directory)

从苹果手机同步到小米手机的图片,压缩失败

As you can see the "convert now" button gets cut off on the bottom and the information/settings icons are mixed in with the app name. Android: 12 Phone: galaxy s10e...

``` Fatal Exception: java.lang.IllegalStateException: BitmapFactory.decodeFile…eFile.absolutePath, this) must not be null at id.zelory.compressor.UtilKt.decodeSampledBitmapFromFile(Util.kt:45) at id.zelory.compressor.constraint.DefaultConstraint.satisfy(DefaultConstraint.kt:28) at id.zelory.compressor.Compressor$compress$3.invokeSuspend(Compressor.kt:28) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:585) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)...

Non-fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1269) at android.graphics.Canvas.drawBitmap(Canvas.java:1325) at id.zelory.compressor.ImageUtil.getScaledBitmap(ImageUtil.java:129) at id.zelory.compressor.ImageUtil.compressImage(ImageUtil.java:161) at id.zelory.compressor.Compressor.compressToFile(Compressor.java:48) at com.example.luis.myapplication.Infofoto.onActivityResult(Infofoto.java:286) at android.app.Activity.dispatchActivityResult(Activity.java:6442) at...

This fails for files that don't have a file extension and produces paths outside of the Android sandbox. https://github.com/zetbaitsu/Compressor/blob/70c7eac678ee3d4cb61b10cfa9782de4102def72/compressor/src/main/java/id/zelory/compressor/Util.kt#L89 Kotlin has `nameWithoutExtension` which uses the file name instead of the...

2.x版本不要删哦,老项目在用