Coalesce animated gifs before resizing them. Fixes #264
Coalesce animated gifs before resizing them. Fixes #264

In an animated gif, each frame is only the size it needs to be to cover the changed part of the image.
This is often much lower than the actual image size and the Wand image backend was using this incorrect size in its resizing calculations, causing all animated gifs to be resized incorrectly or not at all.

This commit calls ImageMagicks "MagickCoalesceImages" on the wand image. This resizes every frame to the full size of the image so the resizing calculations will work properly.

rv816/wagtail,inonit/wagtail,100Shapes/wagtail,lojack/wagtail,rv816/wagtail,serzans/wagtail,iansprice/wagtail,takeflight/wagtail,dresiu/wagtail,mikedingjan/wagtail,gasman/wagtail,m-sanders/wagtail,mixxorz/wagtail,iansprice/wagtail,rsalmaso/wagtail,Klaudit/wagtail,timorieber/wagtail,timorieber/wagtail,rsalmaso/wagtail,jnns/wagtail,davecranwell/wagtail,Pennebaker/wagtail,darith27/wagtail,hamsterbacke23/wagtail,torchbox/wagtail,Klaudit/wagtail,kurtw/wagtail,takeflight/wagtail,bjesus/wagtail,Tivix/wagtail,wagtail/wagtail,torchbox/wagtail,bjesus/wagtail,FlipperPA/wagtail,nrsimha/wagtail,thenewguy/wagtail,mephizzle/wagtail,marctc/wagtail,wagtail/wagtail,gogobook/wagtail,darith27/wagtail,FlipperPA/wagtail,dresiu/wagtail,mephizzle/wagtail,gogobook/wagtail,mixxorz/wagtail,mayapurmedia/wagtail,chrxr/wagtail,mayapurmedia/wagtail,wagtail/wagtail,nimasmi/wagtail,nealtodd/wagtail,thenewguy/wagtail,Toshakins/wagtail,chrxr/wagtail,iho/wagtail,m-sanders/wagtail,nutztherookie/wagtail,hanpama/wagtail,nilnvoid/wagtail,kaedroho/wagtail,zerolab/wagtail,nimasmi/wagtail,jorge-marques/wagtail,takeflight/wagtail,takeshineshiro/wagtail,thenewguy/wagtail,m-sanders/wagtail,lojack/wagtail,taedori81/wagtail,KimGlazebrook/wagtail-experiment,Klaudit/wagtail,mayapurmedia/wagtail,mjec/wagtail,janusnic/wagtail,nrsimha/wagtail,torchbox/wagtail,jordij/wagtail,m-sanders/wagtail,mikedingjan/wagtail,KimGlazebrook/wagtail-experiment,jnns/wagtail,stevenewey/wagtail,JoshBarr/wagtail,rv816/wagtail,inonit/wagtail,willcodefortea/wagtail,quru/wagtail,helenwarren/pied-wagtail,marctc/wagtail,quru/wagtail,iansprice/wagtail,nealtodd/wagtail,Toshakins/wagtail,nilnvoid/wagtail,kurtrwall/wagtail,thenewguy/wagtail,jnns/wagtail,WQuanfeng/wagtail,mjec/wagtail,quru/wagtail,stevenewey/wagtail,benemery/wagtail,rsalmaso/wagtail,nealtodd/wagtail,jnns/wagtail,kaedroho/wagtail,mjec/wagtail,torchbox/wagtail,takeshineshiro/wagtail,kaedroho/wagtail,gasman/wagtail,benjaoming/wagtail,Tivix/wagtail,benemery/wagtail,hamsterbacke23/wagtail,janusnic/wagtail,gasman/wagtail,kaedroho/wagtail,kurtrwall/wagtail,tangentlabs/wagtail,stevenewey/wagtail,takeshineshiro/wagtail,tangentlabs/wagtail,taedori81/wagtail,chimeno/wagtail,nilnvoid/wagtail,WQuanfeng/wagtail,rjsproxy/wagtail,marctc/wagtail,JoshBarr/wagtail,kurtw/wagtail,davecranwell/wagtail,tangentlabs/wagtail,zerolab/wagtail,lojack/wagtail,gasman/wagtail,FlipperPA/wagtail,JoshBarr/wagtail,benjaoming/wagtail,jorge-marques/wagtail,100Shapes/wagtail,nealtodd/wagtail,nutztherookie/wagtail,zerolab/wagtail,takeflight/wagtail,zerolab/wagtail,mayapurmedia/wagtail,inonit/wagtail,serzans/wagtail,bjesus/wagtail,hamsterbacke23/wagtail,helenwarren/pied-wagtail,WQuanfeng/wagtail,stevenewey/wagtail,davecranwell/wagtail,jordij/wagtail,gasman/wagtail,benjaoming/wagtail,janusnic/wagtail,mikedingjan/wagtail,wagtail/wagtail,chrxr/wagtail,takeshineshiro/wagtail,iho/wagtail,hanpama/wagtail,Tivix/wagtail,mixxorz/wagtail,willcodefortea/wagtail,timorieber/wagtail,iho/wagtail,rsalmaso/wagtail,rjsproxy/wagtail,Pennebaker/wagtail,chimeno/wagtail,mjec/wagtail,marctc/wagtail,chimeno/wagtail,darith27/wagtail,nutztherookie/wagtail,taedori81/wagtail,Tivix/wagtail,janusnic/wagtail,tangentlabs/wagtail,nilnvoid/wagtail,Klaudit/wagtail,jorge-marques/wagtail,mephizzle/wagtail,hamsterbacke23/wagtail,nutztherookie/wagtail,benjaoming/wagtail,mephizzle/wagtail,kaedroho/wagtail,JoshBarr/wagtail,nimasmi/wagtail,chrxr/wagtail,serzans/wagtail,WQuanfeng/wagtail,rsalmaso/wagtail,KimGlazebrook/wagtail-experiment,inonit/wagtail,rjsproxy/wagtail,kurtrwall/wagtail,100Shapes/wagtail,iho/wagtail,jordij/wagtail,gogobook/wagtail,hanpama/wagtail,mixxorz/wagtail,rv816/wagtail,kurtw/wagtail,willcodefortea/wagtail,jordij/wagtail,timorieber/wagtail,Toshakins/wagtail,darith27/wagtail,nimasmi/wagtail,quru/wagtail,benemery/wagtail,chimeno/wagtail,nrsimha/wagtail,iansprice/wagtail,helenwarren/pied-wagtail,kurtw/wagtail,taedori81/wagtail,KimGlazebrook/wagtail-experiment,davecranwell/wagtail,gogobook/wagtail,thenewguy/wagtail,Pennebaker/wagtail,Pennebaker/wagtail,mikedingjan/wagtail,dresiu/wagtail,wagtail/wagtail,hanpama/wagtail,rjsproxy/wagtail,zerolab/wagtail,kurtrwall/wagtail,Toshakins/wagtail,benemery/wagtail,jorge-marques/wagtail,mixxorz/wagtail,bjesus/wagtail,serzans/wagtail,jorge-marques/wagtail,dresiu/wagtail,dresiu/wagtail,willcodefortea/wagtail,nrsimha/wagtail,FlipperPA/wagtail,taedori81/wagtail,chimeno/wagtail