[php-src] Issue #10614: imagerotate will turn the picture all black, when rotated 90
| From: | xuncanzhe | Date: | Sat, 18 Feb 2023 08:00:20 +0000 |
| Subject: | [php-src] Issue #10614: imagerotate will turn the picture all black, when rotated 90 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243747@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10614
Author: xuncanzhe
### Description
When using imagerotate to rotate the barcode image, setting the rotation angle to 90 will cause the
image to be completely filled with black. but angle 90.01 is working
The following code:
```php
<?php
$img_debug = imagecreatefrompng("D:/7701202301090006.png");
$img_debug = imagerotate($img_debug, 90.00, 0, -1);
imagepng($img_debug, "D:/output.png");
```
### PHP Version
PHP 7.3.4
### Operating System
windows