All Projects → wangjwchn → Aimage

wangjwchn / Aimage

An animated gif & apng engine for iOS in Swift. Have a great performance on memory and cpu usage.

Programming Languages

swift
15916 projects
swift4
162 projects

Projects that are alternatives of or similar to Aimage

Gulp Image
Optimize PNG, JPEG, GIF, SVG images with gulp task.
Stars: ✭ 213 (-78.99%)
Mutual labels:  image, gif
Jvedio
Windows desktop application to manage local video;Support baidu AI, youdao translation;Support FFMPEG video processing;Support multi-database management and statistics;Support skin switching
Stars: ✭ 545 (-46.25%)
Mutual labels:  image, gif
Npm Gif
Replace NPM install's progress bar with a GIF!
Stars: ✭ 332 (-67.26%)
Mutual labels:  image, gif
Awesomeimagepicker
Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image selection.
Stars: ✭ 160 (-84.22%)
Mutual labels:  image, gif
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (-22.88%)
Mutual labels:  image, gif
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+133.04%)
Mutual labels:  image, gif
Sdwebimage
Asynchronous image downloader with cache support as a UIImageView category
Stars: ✭ 23,928 (+2259.76%)
Mutual labels:  image, gif
Mergi
go library for image programming (merge, crop, resize, watermark, animate, ease, transit)
Stars: ✭ 127 (-87.48%)
Mutual labels:  image, gif
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (-24.85%)
Mutual labels:  image, gif
Nuxt Optimized Images
🌅🚀 Automatically optimizes images used in Nuxt.js projects (JPEG, PNG, SVG, WebP and GIF).
Stars: ✭ 717 (-29.29%)
Mutual labels:  image, gif
Image Optimizer
Easily optimize images using PHP
Stars: ✭ 2,127 (+109.76%)
Mutual labels:  image, gif
Scrimage
Java, Scala and Kotlin image processing library
Stars: ✭ 792 (-21.89%)
Mutual labels:  image, gif
Imageviewer
A simple and customizable Android full-screen image viewer 一个简单且可自定义的Android全屏图像浏览器
Stars: ✭ 1,889 (+86.29%)
Mutual labels:  image, gif
Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (-80.18%)
Mutual labels:  image, gif
Bbwebimage
A high performance Swift library for downloading, caching and editing web images asynchronously.
Stars: ✭ 128 (-87.38%)
Mutual labels:  image, gif
Imaginary
Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
Stars: ✭ 4,107 (+305.03%)
Mutual labels:  image, gif
Sketch
Sketch 是 Android 上一个强大且全面的图片加载器,支持 GIF,手势缩放以及分块显示超大图片。Sketch is a powerful and comprehensive image loader on Android, with support for GIF, gesture zooming, block display super large image
Stars: ✭ 1,557 (+53.55%)
Mutual labels:  image, gif
Lilliput
Resize images and animated GIFs in Go
Stars: ✭ 1,690 (+66.67%)
Mutual labels:  image, gif
Allsketchs
Processing sketches, in which I have worked in the last years; images, videos, prototypes, experiments, tools, works, concepts... Everything is unfinished, some may not work, When I had no ideas, I would open one to see what it was...
Stars: ✭ 666 (-34.32%)
Mutual labels:  image, gif
Image Optimizer
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
Stars: ✭ 785 (-22.58%)
Mutual labels:  image, gif

Cover

Language Pod License

Features

  • [x] Small but complete, only200lines of code.
  • [x] Allow to control display quality, memory usage, loop time and display progress.
  • [x] Have a great performance on memory and cpu usage.
  • [x] Using asynchronous image decoding to reduce the main thread CPU usage.

Usage

/* Create AImage with URL */
let image = AImage(url: Bundle.main.url(forResource: "test", withExtension: "gif")!)

/* Create AImageView */
let imageview = AImageView(frame:CGRect(x: 0.0, y: 50.0, width: 380.0, height: 212.0))

/* Add AImage to AImageView */
imageview.add(image: image!)

/* Start displaying animated image */
imageview.play = true

...
...

/* Stop displaying animated image */
imageview.play = false

Benchmark

Compared with Gifu and Apple's example code.

Test1: Display view.gif

Library CPU Memory
Apple's Example Code
Gifu
AImage

Test2: Display earth.gif

Library CPU Memory
Apple's Example Code
Gifu
AImage

Measurement Factors:

  • Measurement time: August 24, 2017

  • Measurement device: iPhone6, iOS 11.0(15A5362a)

Principles

Old Version

Version of swift 2.3 can be found in here.

Licence

AImage is released under the MIT license. See LICENSE for details.

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].