Read More
Read now

Glide Image Transformations

Save

Glide BitmapTransformation can be used as an image manipulation before the image is being displayed.
For example, Crop image, blur image, Mask, Color, etc.

In this blog, we will blur the image with the help of class BitmapTransformation provided by glide.

Step1: Added glide dependencies.

 

Step2: Extend BitmapTransformation class and Override method transform

 

Step3: Transform image
For transforming image, you need to pass an instance of your transformation class as a parameter to .transform().

 

You can write your logic in the method .transform()  to apply other transformations on the bitmap image.

References:

https://github.com/bumptech/glide/wiki/Transformations

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!

Deniel Kerr

Owner and Founder. Opencart

Talk to Sales
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home