No BSD License  

Highlights from
pix2anigif

3.0

3.0 | 5 ratings Rate this file 4 Downloads (last 30 days) File Size: 3.84 KB File ID: #16194

pix2anigif

by Gabe Hoffmann

 

31 Aug 2007 (Updated 02 Sep 2007)

Combines sequence of numbered pictures into an animated GIF.

| Watch this File

File Information
Description

Automatically creates an animated GIF from a numbered sequence of images using Matlab's imwrite function. Default settings allow basic operation, additional options allow the user to tweak the output.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Other requirements Tested on Windows (XP) and Linux (Fedora Core 7)
Tags for This File  
Everyone's Tags
animated gif, animation, frames, gif, graphics export, graphics import, movie, stitch
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
09 Jul 2012 S C

This error can be eliminated by adding one line. Edit the line number 74 and replace [icdata,imap] by [icdata] and in the next line give the following command
[icdata,imap]=rgb2ind(icdata,128);

It has been tested for 'jpg' file.

13 Jul 2008 Arnaud Laurent

Sounds like a great idea but unfortunately I can't make it work with any type of image file, I always get the same errot:

Error using ==> imwrite at 363
Invalid colormap

Error in ==> pix2anigif at 80
imwrite(icdata,imap,[outputFileRoot,'.gif'],'gif',...

14 Apr 2008 Thierry Sollier

It works well for BMP images, very simple to use and very useful. Many Thanks !
I have noticed a bug with TIF images, see below :
pix2anigif('test','tif',1,10,'%1d')
??? Error using ==> imwrite at 366
Invalid colormap

08 Apr 2008 Nick Nalli

??? Error using ==> imwrite at 363
Get error message when loading image files created by MATLAB (print -d<device> *):

Invalid colormap

Error in ==> pix2anigif at 80
imwrite(icdata,imap,[outputFileRoot,'.gif'],'gif',...

16 Jan 2008 chan Jeong

Nice work!!

07 Nov 2007 kane kusangai

this code doesn't work on version 7 of matlab...

Contact us