Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wasabeef/composable-images
The Composable Images is a library providing Jetpack Compose wrapper for Glide, Picasso, and Coil.
https://github.com/wasabeef/composable-images
android coil glide jetpack-compose picasso
Last synced: 3 months ago
JSON representation
The Composable Images is a library providing Jetpack Compose wrapper for Glide, Picasso, and Coil.
- Host: GitHub
- URL: https://github.com/wasabeef/composable-images
- Owner: wasabeef
- License: apache-2.0
- Created: 2020-09-23T18:49:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-29T06:08:21.000Z (over 4 years ago)
- Last Synced: 2024-10-11T08:10:42.932Z (4 months ago)
- Topics: android, coil, glide, jetpack-compose, picasso
- Language: Kotlin
- Homepage: https://github.com/wasabeef/composable-images
- Size: 48.7 MB
- Stars: 107
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## What is Composable Images?
The Composable Images is a library providing Jetpack Compose wrapper for [Coil], [Glide], and [Picasso].
## Installation
### Requirements
- Android 5.0+ Lollipop (API level 21)### Repository
```gradle
repositories {
jcenter()
}
```#### For [Coil]
```gradle
dependencies {
implementation 'jp.wasabeef.composable:coil:1.x.x'
}
```
```kotlin
CoilImage(
model = "https://images.unsplash.com/photo-1588952159215-a4b39193464e",
modifier = Modifier.preferredWidth(240.dp)
) {
transformations(
BlurTransformation(context, 25f, 2f)
)
}
```#### For [Glide]
```gradle
dependencies {
implementation 'jp.wasabeef.composable:glide:1.x.x'
}
```
```kotlin
GlideImage(
model = "https://images.unsplash.com/photo-1588952159215-a4b39193464e",
modifier = Modifier.preferredWidth(120.dp),
options = RequestOptions().centerCrop())
```#### For [Picasso]
```gradle
dependencies {
implementation 'jp.wasabeef.composable:picasso:1.x.x'
}
```
```kotlin
PicassoImage(
model = "https://images.unsplash.com/photo-1588952159215-a4b39193464e",
modifier = Modifier.preferredWidth(120.dp),
) {
centerInside()
rotate(90f)
}
```## Development
### Setup
Things you will need
- Linux, Mac OS X, or Windows.
- [Android Studio (Preview)](https://developer.android.com/studio/preview)
- npm```
$ npm install
```### Build
```
$ ./gradlew assemble
```### Formatting
```
$ ./gradlew ktlint
```### Publishing to [Bintray](https://bintray.com/bintray/jcenter)
```
$ ./gradlew clean install build
$ ./gradlew bintrayUpload -PbintrayUser=******** -PbintrayKey=***************
```[Coil]: https://github.com/coil-kt/coil
[Glide]: https://github.com/bumptech/glide
[Picasso]: https://github.com/square/picasso
[Fresco]: https://github.com/facebook/fresco