Skip to content

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

@borisdelev

Description

@borisdelev

Describe the bug
I can confirm this is issue still exists in Phalcon 5.x - see this: #16979
I have same problem.

To Reproduce

$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

Expected behavior
Well... to keep PNG transparency or way to maintain that.

Details

  • Phalcon version: 5.2.1
  • PHP Version: 8.1
  • Operating System: Windows
  • Server: Apache

Thank you!!!!

Metadata

Metadata

Assignees

Labels

5.0The issues we want to solve in the 5.0 releasebugA bug reportstatus: mediumMedium

Type

No type
No fields configured for issues without a type.

Projects

Status
Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions