Skip to content

imagerotate will turn the picture all black, when rotated 90 #10614

Closed
@xuncanzhe

Description

@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
$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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions