[php-src] Issue #11569: imagecreatefromstring Followed By imagepng does not Replicate File

From: 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: ![issue 3624b](https://github.com/php/php-src/assets/10341515/0df7181e-4454-4fdc-9ee0-c2ea6705a798) Resulted in this output file: ![issue 3624c](https://github.com/php/php-src/assets/10341515/ce59c7c0-22ca-43d4-9dd2-a3d6a7595bd9) 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)

« previous php.bugs (#244852) next »