Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening and closing file corupts image #1222

Closed
LMckim opened this issue Oct 29, 2019 · 3 comments · Fixed by #1462
Closed

Opening and closing file corupts image #1222

LMckim opened this issue Oct 29, 2019 · 3 comments · Fixed by #1462

Comments

@LMckim
Copy link

LMckim commented Oct 29, 2019

When opening an Excel file then writing to a new file the image stamped to each worksheet is corrupted.

What is the expected behavior?

The image should remain

What is the current behavior?

The image becomes corrupted

What are the steps to reproduce?

$reader = IOFactory::createReaderForFile($path);
$excel = $reader->load($path);
$fileName = "test";
$writer = IOFactory::createWriter($excel,"Xlsx");
$writer->save($fileName.".xlsx");

Which versions of PhpSpreadsheet and PHP are affected?

PHP 7.3.7 PHPSpreadsheet ^1.9

@darenas31415
Copy link
Contributor

Hi @LMckim,

I've tested it and the new Excel file still contains the original image.

Please provide a sample file to reproduce the issue, that would help somebody finding the problem.

Thanks

@stale
Copy link

stale bot commented Jan 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@stale stale bot added the stale label Jan 7, 2020
@stale stale bot closed this as completed Jan 14, 2020
@oleibman
Copy link
Collaborator

Fixed by PR #1462.

@oleibman oleibman removed the stale label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants