Skip to content

[BUG]: Phalcon\Image\Adapter\GD: When resizing .png loosing transparency #16979

@veryayskiy

Description

@veryayskiy

Description
When using Phalcon\Image\Adapter\GD resize() method on png with alpha channel the new image has a black background.

Steps to reproduce the behavior:

$image = new \Phalcon\Image\Adapter\GD('image-with-transparent-background.png'); //image with a transparent background
$image->resize(500,500); //any new size
$image->save(); //after saving the image has a black background

Probably need to add imagealphablending();

Metadata

Metadata

Assignees

Labels

5.0The issues we want to solve in the 5.0 releasebugA bug reportduplicateDuplicate issue. The duplicate issue is referenced in the comments

Type

No fields configured for Bug.

Projects

Status
Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions