1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-06-07 23:04:06 +08:00
2015-01-12 00:38:03 +09:00
2015-01-12 00:38:03 +09:00
2015-01-12 00:20:14 +09:00
2015-01-11 01:57:37 +09:00
2015-01-12 00:20:24 +09:00
2015-01-11 01:57:37 +09:00
2015-01-11 22:43:38 +09:00
2015-01-11 01:57:37 +09:00
2015-01-11 22:43:38 +09:00
2015-01-11 01:57:37 +09:00
2015-01-11 01:57:37 +09:00
2015-01-09 19:33:29 +09:00
2015-01-12 00:38:03 +09:00
2015-01-11 01:57:37 +09:00

Glide Transformations

License

A transformation library providing a variety of image transformations for Glide.

Please feel free to use this.

Demo

Original Image

Transformation

How do I use it?

Step 1

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'jp.wasabeef:glide-transformations:1.0.0'
}

Step 2

Set RecyclerView ItemAnimator.

Glide.with(this).load(R.drawable.demo)
        .bitmapTransform(new BlurTransformation(this, Glide.get(this).getBitmapPool()))
        .into((ImageView) findViewById(R.id.image));

Advanced Step 3

You can set an multiple transformations.

BitmapPool pool = Glide.get(this).getBitmapPool();
Glide.with(this).load(R.drawable.demo).bitmapTransform(
  new BlurTransformation(this, pool, 5),  new CropCircleTransformation(pool))
  .into((ImageView) findViewById(R.id.image));

Transformations

Crop

CropTransformation, CropCircleTransformation, CropSquareTransformation

Color

ColorFilterTransformation, GrayscaleTransformation

Blur

BlurTransformation

Other

RoundedCornersTransformation

Developed By

Daichi Furiya (Wasabeef) - dadadada.chop@gmail.com

Follow me on Twitter

License

Copyright 2015 Wasabeef

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description
No description provided
Readme 26 MiB