xref: /PHP-8.2/ext/gd/tests/bug22544-mb.phpt (revision a375d547)
1--TEST--
2Bug #22544 (TrueColor transparency in PNG images).
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7    $image = imageCreateTruecolor(640, 100);
8    $transparent = imageColorAllocate($image, 0, 0, 0);
9    $red = imageColorAllocate($image, 255, 50, 50);
10    imageColorTransparent($image, $transparent);
11    imageFilledRectangle($image, 0, 0, 640-1, 100-1, $transparent);
12    include_once __DIR__ . '/func.inc';
13    test_image_equals_file(__DIR__ . '/bug22544私はガラスを食べられます.png', $image);
14?>
15--EXPECT--
16The images are equal.
17