Iterate images
Methods
iterateImages(callable $callback, ?string $sheet = null): boolcallable $callback
string $sheet
Callback payload
Return value
Example
Last updated
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->openFile('source.xlsx');
$excel->iterateImages(function (array $img) {
echo "image at ({$img['from_row']}, {$img['from_col']}), MIME={$img['mime']}\n";
file_put_contents('./out_' . $img['name'], $img['data']);
}, 'Sheet1');