We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0073e1b commit b9eadf2Copy full SHA for b9eadf2
README.md
@@ -60,6 +60,19 @@ val compressedImageFile = Compressor.compress(context, actualImageFile) {
60
format(Bitmap.CompressFormat.WEBP)
61
}
62
```
63
+#### You can create your own extension too
64
+```kotlin
65
+fun Compression.lowerCaseName() {
66
+ constraint(MyLowerCaseNameConstraint())
67
+}
68
+
69
+val compressedImageFile = Compressor.compress(context, actualImageFile) {
70
+ lowerCaseName() // your own extension
71
+ quality(80) // combine with compressor constraint
72
+ format(Bitmap.CompressFormat.WEBP)
73
74
+```
75
76
### Compressor now is using Kotlin coroutines!
77
#### Calling Compressor should be done from coroutines scope
78
```kotlin
0 commit comments