Skip to content

NickHardeman/ofxGifEncoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ofxGifEncoder
-------------

Export animated gifs from openframeworks

USAGE:
	
	The important method is 
	
	ofxGifEncoder.save(vector <ofxGifFrame *> frames, string fileName, int nColors = 256);
	
	You give it a vector of ofxGifFrame pointers and it'll save an animated gif to the bin folder.

	ofxGifFrame is a struct (similar to ofPixels) which represents a single frame of the animation. 
	You can specify the width, height and duration in seconds (0.1f would be 10 fps).
	
	There is a convenience method ofxGifEncoder.createGifFrame() that facilitates this task.
	
CAVEATS:

	It will block your app while the gif is being saved, which might take a while with larger files.
	It only accepts rgb arrays for now.

TODO:
	- Implement freeimage's dithering.
	- Transaparent gifs!
	- Give the option to specify general fps instead of for each frame.
	- Thread the saving.
	- Provide option to choose palette?
	
	



About

openframeworks addon to export animated gifs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.5%
  • C 18.5%