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.
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',...