Compositing text on animated gif thickens
Posted: 2015-01-23T10:47:54-07:00
I have an animated gif: http://imgur.com/4GhaC8E (let's call it double-blanked.gif)
I would like to put text on the frames, so first I create a transparent image with text:
convert -size 106x73 -background none -fill "#0f0f0e" -font "./sign-standard.ttf" -gravity center -pointsize 18 label:"CHANGE\nMANAGEMENT\nPROCESS" sideout.miff
Then I perspective distort the text:
convert sideout.miff -distort Perspective "0,0 0,0 0,73 0,73 106,0 96,13 106,73 96,79" sidedistorted.miff
Then I attempt to compose the text onto it (I've tried png as well as miff with the same results):
convert double-blanked.gif null: sidedistorted.miff -geometry "+515+94" -layers Composite sidewith_background.gif
The result has a flicker: http://imgur.com/fKpgQ5n
Frame 1 has text that is thinner than subsequent frames. If I add -layers Optimize, then the text gets gradually thicker each frame.
How do I compose consistently across all the frames?
I would like to put text on the frames, so first I create a transparent image with text:
convert -size 106x73 -background none -fill "#0f0f0e" -font "./sign-standard.ttf" -gravity center -pointsize 18 label:"CHANGE\nMANAGEMENT\nPROCESS" sideout.miff
Then I perspective distort the text:
convert sideout.miff -distort Perspective "0,0 0,0 0,73 0,73 106,0 96,13 106,73 96,79" sidedistorted.miff
Then I attempt to compose the text onto it (I've tried png as well as miff with the same results):
convert double-blanked.gif null: sidedistorted.miff -geometry "+515+94" -layers Composite sidewith_background.gif
The result has a flicker: http://imgur.com/fKpgQ5n
Frame 1 has text that is thinner than subsequent frames. If I add -layers Optimize, then the text gets gradually thicker each frame.
How do I compose consistently across all the frames?