Skip to content

White colour made alpha color of PNG on scale #1434

@SCIF

Description

@SCIF

Describe the bug

Looks like white background getting transformed to «transparent»

Code Example

Repro: https://github.com/SCIF/repro-intervention

make test

Inspect images/ folder. There are two options of the same file as input: having no alpha channel and having the alpha channel.

Expected behavior

White should not be transformed to alpha colour on scaling

Environment (please complete the following information):

  • PHP Version: 8.3
  • OS: Docker/Debian
  • Intervention Image Version: 3.11.2
  • GD, Imagick or libvips: 3.8.0RC2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions