Skip to content

Commit

Permalink
Merge pull request #25 from Kturva/main
Browse files Browse the repository at this point in the history
Images inserted to cells in Excel 365 are not detected
  • Loading branch information
aVadim483 authored Oct 12, 2024
2 parents e2fa125 + f7974a4 commit 3184b7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added demo/files/demo-03-images-excel-365.xlsx
Binary file not shown.
10 changes: 10 additions & 0 deletions tests/FastExcelReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ public function testExcelReader03()
$this->assertEquals('image1.jpeg', $result['Sheet1']['C2']['file_name']);
}

public function testExcelReader03Excel365()
{
$file = self::DEMO_DIR . 'demo-03-images-excel-365.xlsx';
$excel = Excel::open($file);
$this->assertEquals(2, $excel->countImages());

$this->assertFalse($excel->sheet()->hasImage('c1'));
$this->assertTrue($excel->sheet()->hasImage('c2'));
}

public function testExcelReader04()
{
$file = self::DEMO_DIR . 'demo-04-styles.xlsx';
Expand Down

0 comments on commit 3184b7b

Please sign in to comment.