GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SDWebImage/SDWebImageFLIFCoder: A FLIF coder plugin for SDWebImage, use libflif

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
SDWebImageFLIFCoder.xcodeproj
SDWebImageFLIFCoder.xcodeproj
 
 
SDWebImageFLIFCoder
SDWebImageFLIFCoder
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Cartfile
Cartfile
 
 
Cartfile.resolved
Cartfile.resolved
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SDWebImageFLIFCoder.podspec
SDWebImageFLIFCoder.podspec
 
 
_Pods.xcodeproj
_Pods.xcodeproj
 
 

Repository files navigation

SDWebImageFLIFCoder

CI Status Version License Platform Carthage compatible

What's for

This is a SDWebImage coder plugin to add Free Lossless Image Format support. Which is built based on the open-sourced libflif codec.

This FLIF coder plugin support static FLIF and animated FLIF image decoding and encoding.

Requirements

  • iOS 9.0
  • macOS 10.11
  • tvOS 9.0
  • watchOS 2.0
  • Xcode 11

Installation

CocoaPods

SDWebImageFLIFCoder is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SDWebImageFLIFCoder'

Carthage

SDWebImageFLIFCoder is available through Carthage. Which use libflif as dynamic framework.

github "SDWebImage/SDWebImageFLIFCoder"

Usage

To use FLIF coder, you should firstly add the SDWebImageFLIFCoder to the coders manager. Then you can call the View Category method to start load FLIF images.

  • Objective-C
SDImageFLIFCoder *FLIFCoder = [SDImageFLIFCoder sharedCoder];
[[SDImageCodersManager sharedManager] addCoder:FLIFCoder];
UIImageView *imageView;
[imageView sd_setImageWithURL:url];
  • Swift
let FLIFCoder = SDImageFLIFCoder.shared
SDImageCodersManager.shared.addCoder(FLIFCoder)
let imageView: UIImageView
imageView.sd_setImage(with: url)

SDWebImageFLIFCoder also support FLIF encoding. You can encode UIImage to FLIF compressed image data.

  • Objective-C
UIImage *image;
NSData *imageData = [image sd_imageDataAsFormat:SDImageFormatFLIF];
  • Swift
let image;
let imageData = image.sd_imageData(as: .FLIF)

Screenshot

These FLIF images are from Phew, you can try the demo with your own FLIF image as well.

Author

DreamPiggy

Thanks

libflif Phew

License

SDWebImageFLIFCoder is available under the MIT license. See the LICENSE file for more info.

About

A FLIF coder plugin for SDWebImage, use libflif

Resources

Readme
MIT license
Activity
Custom properties

Stars

7 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.