Thanks to visit codestin.com
Credit goes to github.com

Skip to content

resizing causes PNGs to lose transparent background #943

@ryuuseijin

Description

@ryuuseijin

Thumbor request URL

curl -v 'http://...../unsafe/fit-in/400x/filters:format(png)/.......' >out.png

Any PNG with transparency should work. Here is a test image:
scribble.png

Expected behaviour

The background of out.png should be transparent.

Actual behaviour

The background of out.png is black.

Operating system

Debian Linux

Your thumbor.conf

thumbor.conf.txt

Scaling the image seems to be causing it. When I specify a width larger than the original, transparency is not lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions