Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Fix Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
stil authored Aug 29, 2017
1 parent 3a5792c commit 9b9b7d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
##Introduction
###What is that?
## Introduction
### What is that?
gif-endec is a GIF encoder and decoder. It allows you to split animated GIFs into separate frames. You can also extract frame durations and disposal method (disposal method indicates the way in which the graphic is to be treated after being displayed).

###Performance
### Performance
Thanks to some code optimizations, this library decodes animated GIFs much faster than [Sybio/GifFrameExtractor](https://github.com/Sybio/GifFrameExtractor). It also optimizes memory usage, allowing you to process decoded frames one after another. It doesn't load all frames to memory at once.

###Installation
### Installation
Install this package with Composer.
```bash
composer require stil/gif-endec
Expand Down Expand Up @@ -64,7 +64,7 @@ $gifDecoder->decode(function (FrameDecodedEvent $event) {
The result frames will be written to directory:
![](http://i.imgur.com/NLwHdo4.png)

##Render animated GIFs' frames
## Render animated GIFs' frames
If your GIF is saved using transparency, some frames might look like this:
![](http://i.imgur.com/NIJGVnw.png)

Expand Down Expand Up @@ -109,7 +109,7 @@ $gifRenderer->start(function (FrameRenderedEvent $event) {
```


##Create an animation
## Create an animation
Assume now, that we want to slow down this skateboarder animation a little bit, so we can see how to make such trick.
We already have splitted frames in `skateboarder/frame*.gif` directory.

Expand Down Expand Up @@ -141,7 +141,7 @@ $gif->getStream()->copyContentsToFile('skateboarder/animation.gif');
This is how our slowed down animation would look like:
![](http://i.imgur.com/iddzN5M.gif)

##Disposal methods explained
## Disposal methods explained
Disposal Method indicates the way in which the graphic is to be treated after being displayed.
```
Values : 0 - No disposal specified. The decoder is
Expand Down

0 comments on commit 9b9b7d4

Please sign in to comment.