glide icon indicating copy to clipboard operation
glide copied to clipboard

Use glide v4 to resize local gif file (for saving to local storage not for displaying it)

Open KishorJena opened this issue 3 years ago • 0 comments
trafficstars

Everyone is talking about viewing and displaying the gif. I searched the net many times. please someone share the code snippet to resize the gif image and get the data type which can be used to write file. like byte array, file, drawable, streams, buffers.

             File file = Glide.with(reactContext)
                         .asFile()
                         .load(url)
                         // .override(512, 512)
                         .fitCenter() 
                         .submit(512,512)
                         .get();

KishorJena avatar Mar 14 '22 15:03 KishorJena