[php-src] Issue #11569: imagecreatefromstring Followed By imagepng does not Replicate File
| From: | oleibman | Date: | Fri, 30 Jun 2023 17:15:29 +0000 |
| Subject: | [php-src] Issue #11569: imagecreatefromstring Followed By imagepng does not Replicate File | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244852@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11569
Author: oleibman
### Description
The following code:
```php
<?php
$stamp_file = file_get_contents('issue.3624b.png');
$gdImage = imagecreatefromstring($stamp_file);
imagepng($gdImage, 'issue.3624c.png');
```
The input file is:

Resulted in this output file:

But I expected this output instead:
Same as input file
### PHP Version
PHP 8.1.18, PHP 8.0.28, PHP 8.2.5
### Operating System
Windows 11 (probably irrelevant)