 The animal trainer wore blue gloves and pushed the real dog off the  chair. Then the blue hands were digitally erased. The CG Garfield  was animated and matchmoved with the real dog. Then Garfield was  composted into the live