felipecsl / Gifimageview
Licence: mit
Android ImageView that handles animated GIF images
Stars: ✭ 1,126
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Gifimageview
Asciicast2gif
Generate GIF animations from asciicasts (asciinema recordings)
Stars: ✭ 874 (-22.38%)
Mutual labels: gif
X11 Recorder
xrec helps you capture any area of your screen either as a screenshot or record a gif file.
Stars: ✭ 17 (-98.49%)
Mutual labels: gif
Qrcode
💮 amazing QRCode generator in Python (supporting animated gif) - Python amazing 二维码生成器(支持 gif 动态图片二维码)
Stars: ✭ 8,613 (+664.92%)
Mutual labels: gif
Peek
Peek makes it easy to create short screencasts of a screen area. It was built
for the specific use case of recording screen areas, e.g. for easily showing UI
features of your own apps or for showing a bug in bug reports. With Peek, you
simply place the Peek window over the area you want to record and press
"Record". Peek is optimized for generating animated GIFs, but you can also
directly record to WebM or MP4 if you prefer.
Stars: ✭ 8,408 (+646.71%)
Mutual labels: gif
Gifsee.js
A modern, vanilla JavaScript gif previewer and loader.
Stars: ✭ 48 (-95.74%)
Mutual labels: gif
Glide
An image loading and caching library for Android focused on smooth scrolling
Stars: ✭ 32,046 (+2746%)
Mutual labels: gif
Aimage
An animated gif & apng engine for iOS in Swift. Have a great performance on memory and cpu usage.
Stars: ✭ 1,014 (-9.95%)
Mutual labels: gif
Sdwebimageswiftui
SwiftUI Image loading and Animation framework powered by SDWebImage
Stars: ✭ 844 (-25.04%)
Mutual labels: gif
Mojito
微信、bilibili大图、长图、gif、视频、自定义view的转场效果,The transition effect of wechat, bilibili large image, long image, GIF, video and custom view
Stars: ✭ 1,068 (-5.15%)
Mutual labels: gif
GifImageView
Android ImageView that handles Animated GIF images
Usage
In your build.gradle
file:
dependencies {
compile 'com.felipecsl:gifimageview:2.2.0'
}
In your Activity
class:
@Override protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
gifView = findViewById(R.id.gifImageView);
gifView.setBytes(bitmapData);
}
@Override protected void onStart() {
super.onStart();
gifView.startAnimation();
}
@Override protected void onStop() {
super.onStop();
gifView.stopAnimation();
}
If you need to post-process the GIF frames, you can do that via GifImageView.setOnFrameAvailable()
.
You can see an example of that in the sample app included on the repository.
gifImageView.setOnFrameAvailable(new GifImageView.OnFrameAvailable() {
@Override public Bitmap onFrameAvailable(Bitmap bitmap) {
return blurFilter.blur(bitmap);
}
});
You can also reset an animation to play again from the beginning gifImageView.resetAnimation();
or show a specific frame of the animation gifImageView.gotoFrame(3)
;
Demo
Be sure to also check the demo project for a sample of usage!
Snapshots of the development version are available in Sonatype's snapshots
repository.
Contributing
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
- Fork the project
- Start a feature/bugfix branch
- Commit and push until you are happy with your contribution
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
Copyright and license
Code and documentation copyright 2011- Felipe Lima. Code released under the MIT license.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].