Add --offset <x,y> for playing animation on specified location

When displaying messages, we need to play animation on top of prepared large
background image.  Since these images are centered in screen, --location does
not work (frame buffer size is unknown to caller) and --offset will be easier
for startup scripts to use.

TEST=display_boot_message enter_dev1 en  # image centering still works
     ply-image --offset -300,0 /usr/share/chromeos-assets/images/*frame*
     # seeing animation played in -300 pixels from center

Change-Id: I2906d1406ee113ee3cfabfb700017ab7314f480f
Reviewed-by: Richard Barnette <>
Reviewed-by: Daniel Erat <>
Tested-by: Hung-Te Lin <>
3 files changed