-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
This is: In one one of the scenario I observed the image is missing from a sheet. I have mentioned the steps to reproduce below.
What is the expected behavior?
Image shouldn't be missing.
What is the current behavior?
Image is getting removed.
What are the steps to reproduce?
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Steps:
Create a Xlsx with 7 sheets. Add image to sheets 1,2,4,7.
Add a List Box from Developer tab to sheet 6
Add a button to Sheet 7 along with a image.
After opening and saving the file with different name using PHPSpreadsheet, I see the image is missing from sheet 4. I have attached a sample excel where issue can be easily reproduced.
<?php
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
// add code that show the issue here...
$spreadsheet = $reader->load($file);
$writer = new Xlsx($spreadsheet);
$writer->save('TextColorOutput.xlsx');Which versions of PhpSpreadsheet and PHP are affected?
1.19
ImageIssueInput.xlsx
Metadata
Metadata
Assignees
Labels
No labels