I am inserting an Image to a Google Slide using Google Slides API , My code is
$emu4M = array('magnitude' => 5500000, 'unit' => 'EMU');
$requests = array();
$requests[] = new Google_Service_Slides_Request(array(
'createImage' => array (
'objectId' => '303030',
'url' => $imageUrl,
'elementProperties' => array(
'pageObjectId' => $pageId,
'size' => array(
'height' => $emu4M,
'width' => $emu4M
),
'transform' => array(
'scaleX' => 1,
'scaleY' => 1,
'translateX' => 5000,
'translateY' => 5000,
'unit' => 'EMU'
)
)
)
));
It works fine but the image inserted is like this
I want the image to appear in center and reduce padding from top. Any help?