Screenshot: Handle bitmap input
authorMichal Novotny <minovotn@redhat.com>
Mon, 12 Dec 2011 16:46:06 +0000 (17:46 +0100)
committerMichal Novotny <minovotn@redhat.com>
Mon, 12 Dec 2011 16:46:06 +0000 (17:46 +0100)
commite7322509185309711bd649e0195e8ea912cbb23c
tree390f2446b3e3c4f0e2a2dc7f3cd67d2ee0840c2d
parent924f1c4027ccca481110115eac9d621836308391
Screenshot: Handle bitmap input

Commit e59b691d of libvirt-php introduces option to get the domain
screenshot using the VNC socket read of raw-encoded data which
allows user to get screenshots even without the gvnc-tools package
installed on the host system. Since the data to get the screenshot
may be enormous (based on VM screen resolution) this patch converts
the data from BMP into PNG format and then outputs the data to the
browser.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
classes/graphics.php [new file with mode: 0644]
classes/libvirt.php
init.php