2015-04-23 13 views

Odpowiedz

7

animowane GIF, pierwsza z przezroczystym tłem. Można rozdzielić obraz na pojedynczych klatek z ImageMagick (instalowany na większości dystrybucji Linuksa i dostępne za darmo dla OSX i Linux) jak poniżej:

convert -coalesce type1.gif frame%02d.gif 

który daje następujące 18 klatek jako pojedynczych obrazów

frame00.gif frame04.gif frame08.gif frame12.gif frame16.gif 
frame01.gif frame05.gif frame09.gif frame13.gif frame17.gif 
frame02.gif frame06.gif frame10.gif frame14.gif 
frame03.gif frame07.gif frame11.gif frame15.gif 

frame00.gif

enter image description here

Ty c zobaczyć je wszystkie naraz, jeśli uczynić je w montażu jak poniżej:

convert -coalesce type1.gif miff:- | montage -tile x4 -frame 5 - montage.gif 

enter image description here

można znaleźć informacje na temat poszczególnych klatek, takich jak jego wielkości jak ten:

identify type1.gif 

type1.gif[0] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[1] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[2] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[3] GIF 100x100 100x100+0+0 8-bit sRGB 64c 29.2KB 0.000u 0:00.000 
type1.gif[4] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[5] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[6] GIF 100x100 100x100+0+0 8-bit sRGB 64c 29.2KB 0.000u 0:00.000 
type1.gif[7] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[8] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[9] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[10] GIF 100x100 100x100+0+0 8-bit sRGB 64c 29.2KB 0.000u 0:00.000 
type1.gif[11] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[12] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[13] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[14] GIF 100x100 100x100+0+0 8-bit sRGB 64c 29.2KB 0.000u 0:00.000 
type1.gif[15] GIF 100x100 100x100+0+0 8-bit sRGB 64c 29.2KB 0.000u 0:00.000 
type1.gif[16] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 
type1.gif[17] GIF 100x100 100x100+0+0 8-bit sRGB 128c 29.2KB 0.000u 0:00.000 

Możesz złożyć wszystkie ramki z powrotem w ten sposób:

convert frame* -loop 0 -delay 20 anim.gif 

enter image description here

Możesz spróbować usunąć czarne tło z drugiego, aby było bardziej podobne do pierwszego, używając takiego polecenia.Być może trzeba pobawić się trochę czynnika fuzz:

convert type2.gif -fuzz 15% -transparent black new.gif 

enter image description here

Powiązane problemy