Skip to content

GD image alpha is inverted #9

@SteveMarshall

Description

@SteveMarshall

Hi,

I’ve been working with ngx_small_light for the last week and, after discovering that ImageMagick struggles under load (~1/10-1/2 of all requests fail with it), I tried switching to GD. Thankfully, GD is much better at coping with load, but I discovered that it expects, per libgd.h, 0-127 as its alpha value, with 0 being transparent.

I was wondering if it would be possible to put some fix into ngx_small_light to mask that from the front-end? I would’ve submitted a patch, but wasn't sure the best way to formulate a test for it.

Thanks for a great module!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions