2016-11-26 09:55:28来源:作者:Yuanjie人点击

Recordit,7.2M大小,Free gifsicle,处理GIF图片 安装Recordit,录制GIF图片 下载最新版本,解压后直接运行 点击Record,会提示选择录制范围 选择范围后,再点击Recordit的图标,开始录制 操作完成后,再点击Recordit的图标,录制结束

Recordit会将本次的录制内容上传至 服务器,如果需要删除时,需要 手动在Recordit中删除

使用gifsicle设置图片为循环播放 下载gifsicle, gifsicle-1.88.tar.gz,解压

Terminal进入解压目录,运行 ./configure --disable-gifview --disable-gifdiff

➜ gifsicle-1.88 ./configure --disable-gifview --disable-gifdiffchecking for a BSD-compatible install... /usr/bin/install-cchecking whether buildenvironmentissane... yeschecking forathread-safemkdir -p... ./install-sh -c -dchecking forgawk...nochecking formawk...nochecking fornawk...nochecking forawk... awkchecking whether make sets$(MAKE)... yeschecking whether make supports nestedvariables... yeschecking whether make sets$(MAKE)... (cached) yeschecking forgcc... gccchecking whether the C compiler works... yeschecking forC compilerdefaultoutputfilename... a.outchecking forsuffixofexecutables...checking whether we arecrosscompiling...nochecking forsuffixofobjectfiles... ochecking whether we areusingthe GNU C compiler... yeschecking whether gcc accepts -g... yeschecking forgccoptiontoacceptISO C89...noneneededchecking whether gcc understands -c and-o together... yeschecking forstyleofincludeusedbymake... GNUchecking dependency styleofgcc... gcc3checking how torun the C preprocessor... gcc -Echecking foran ANSI C-conforming const... yeschecking forinline... inlinechecking forrandom... yeschecking forstrerror... yeschecking forstrtoul... yeschecking formkstemp... yeschecking forlibrarycontaining pow...nonerequiredchecking forgrep that handleslonglinesand-e... /usr/bin/grepchecking foregrep... /usr/bin/grep -Echecking forANSI C header files... yeschecking forsys/types.h... yeschecking forsys/stat.h... yeschecking forstdlib.h... yeschecking forstring.h... yeschecking formemory.h... yeschecking forstrings.h... yeschecking forinttypes.h... yeschecking forstdint.h... yeschecking forunistd.h... yeschecking sys/select.h usability... yeschecking sys/select.h presence... yeschecking forsys/select.h... yeschecking forinttypes.h... (cached) yeschecking forunistd.h... (cached) yeschecking forinttypes.h... (cached) yeschecking forsys/types.h... (cached) yeschecking foruintptr_t... yeschecking forint64_t... yeschecking sizeofunsignedint...4checking sizeofunsignedlong...8checking sizeofvoid*...8checking that generatedfilesarenewerthanconfigure... doneconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/Makefileconfig.status: creating config.hconfig.status: executing depfiles commands

执行 make命令

➜ gifsicle-1.88make/Library/Developer/CommandLineTools/usr/bin/make all-recursiveMaking all insrcgcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT clp.o-MD -MP -MF .deps/clp.Tpo-c -o clp.oclp.cmv -f .deps/clp.Tpo.deps/clp.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT fmalloc.o-MD -MP -MF .deps/fmalloc.Tpo-c -o fmalloc.ofmalloc.cmv -f .deps/fmalloc.Tpo.deps/fmalloc.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT giffunc.o-MD -MP -MF .deps/giffunc.Tpo-c -o giffunc.ogiffunc.cmv -f .deps/giffunc.Tpo.deps/giffunc.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT gifread.o-MD -MP -MF .deps/gifread.Tpo-c -o gifread.ogifread.cmv -f .deps/gifread.Tpo.deps/gifread.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT gifunopt.o-MD -MP -MF .deps/gifunopt.Tpo-c -o gifunopt.ogifunopt.cmv -f .deps/gifunopt.Tpo.deps/gifunopt.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT merge.o-MD -MP -MF .deps/merge.Tpo-c -o merge.omerge.cmv -f .deps/merge.Tpo.deps/merge.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT optimize.o-MD -MP -MF .deps/optimize.Tpo-c -o optimize.ooptimize.cmv -f .deps/optimize.Tpo.deps/optimize.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT quantize.o-MD -MP -MF .deps/quantize.Tpo-c -o quantize.oquantize.cmv -f .deps/quantize.Tpo.deps/quantize.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT support.o-MD -MP -MF .deps/support.Tpo-c -o support.osupport.cmv -f .deps/support.Tpo.deps/support.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT xform.o-MD -MP -MF .deps/xform.Tpo-c -o xform.oxform.cmv -f .deps/xform.Tpo.deps/xform.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT gifsicle.o-MD -MP -MF .deps/gifsicle.Tpo-c -o gifsicle.ogifsicle.cgifsicle.c:24:9: warning:'static_assert'macro redefined [-Wmacro-redefined]#define static_assert(x, msg) switch ((int) (x)) case0: case !!((int) (x)): ^/usr/include/assert.h:107:9: note: previous definition is here#define static_assert _Static_assert ^1warning -f .deps/gifsicle.Tpo.deps/gifsicle.Pogcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT gifwrite.o-MD -MP -MF .deps/gifwrite.Tpo-c -o gifwrite.ogifwrite.cmv -f .deps/gifwrite.Tpo.deps/gifwrite.Pogcc -g -O2 -o gifsicle clp.ofmalloc.ogiffunc.ogifread.ogifunopt.omerge.ooptimize.oquantize.osupport.oxform.ogifsicle.ogifwrite.omake[2]: Nothing to be donefor`all-am'.

进入 src目录,将原 GIf图片(目录: ~/Documents/test.gif)设置为循环播放

➜ gifsicle-1.88 cdsrc➜ src ./gifsicle -bl ~/Documents/test.gif


所有 gifsicle参数 'Gifsicle' manipulates GIF images. Its most common uses include combiningsingle images into animations, adding transparency, optimizing animations forspace, and printing information about GIFs.Usage: gifsicle [OPTION | FILE | FRAME]...Mode options: at most one, before any filenames. -m, --merge Mergemode:combine inputs, write stdout. -b, --batch Batchmode:modify inputs, write back to same filenames. -e, --explode Explodemode:write N filesforeach input, one per frame, to 'input.frame-number'. -E, --explode-by-name Explode mode, but write''.General options: Also --no-OPTION for info and verbose. -I, --info Print info about input GIFs. Two -I's means normal output is not suppressed. --color-info, --cinfo --info plus colormap details. --extension-info, --xinfo --info plus extension details. --size-info, --sinfo --info plus compression information. -V, --verbose Prints progress information. -h, --help Print this message and exit. --version Print version number and exit. -o, --output FILE Write output to FILE. -w, --no-warnings Don't report warnings. --no-ignore-errors Quit on very erroneous input GIFs. --conserve-memory Conserve memory at the expense of speed. --multifile Support concatenated GIF files.Frame selections: #num, #num1-num2, #num1-, #nameFrame change options: --delete FRAMES Delete FRAMES from input. --insert-before FRAME GIFS Insert GIFS before FRAMESininput. --append GIFS Append GIFS to input. --replace FRAMES GIFS Replace FRAMES with GIFSininput. --done Done with frame changes.Image options: Also --no-OPTION and --same-OPTION. -B, --background COL Make COL the background color. --crop X,Y+WxH, --crop X,Y-X2,Y2 Crop the image. --crop-transparency Crop transparent borders off the image. --flip-horizontal, --flip-vertical Flip the image. -i, --interlace Turn on interlacing. -S, --logical-screen WxH Set logical screen to WxH. -p, --position X,Y Set frame position to (X,Y). --rotate-90, --rotate-180, --rotate-270, --no-rotate Rotate the image. -t, --transparent COL Make COL transparent.Extension options: --app-extension N D Add an app extension named N with data D. -c, --comment TEXT Add a comment before thenextframe. --extension N D Add an extension number N with data D. -n, --name TEXT Setnextframe's name. --no-comments, --no-names, --no-extensions Remove comments (names, extensions) from input.Animation options: Also --no-OPTION and --same-OPTION. -d, --delay TIME Set frame delay to TIME (in 1/100sec). -D, --disposal METHOD Set frame disposal to METHOD. -l, --loopcount[=N] Set loop extension to N (default forever). -O, --optimize[=LEVEL] Optimize output GIFs. -U, --unoptimize Unoptimize input GIFs.Whole-GIF options: Also --no-OPTION. --careful Write larger GIFs that avoid bugs in other programs. --change-color COL1 COL2 Change COL1 to COL2 throughout. -k, --colors N Reduce the number of colors to N. --color-method METHOD Set method for choosing reduced colors. -f, --dither Dither image after changing colormap. --gamma G Set gamma for color reduction [2.2]. --resize WxH Resize the output GIF to WxH. --resize-width W Resize to width W and proportional height. --resize-height H Resize to height H and proportional width. --resize-fit WxH Resize if necessary to fit within WxH. --scale XFACTOR[xYFACTOR] Scale the output GIF by XFACTORxYFACTOR. --resize-method METHOD Set resizing method. --resize-colors N Resize can add new colors up to N. --transform-colormap CMD Transform each output colormap by shell CMD. --use-colormap CMAP Set output GIF's colormap to CMAP, which can be 'web', 'gray', 'bw', or a GIF file. 总结 使用MAC录制GIF图片,只需要Recordit就可以 使用 gifsicle处理图片 将图片转为GIF 处理GIF的机制,循环次数、设置大小、透明度等