Skip to content

Convert PNG with alpha to JPG assumes black background #33

Description

@lasconic

Trying to convert the following image to JPG will send back a completely black image.
score_0 1

I'm tempted to add something like the following in image.js. Any advice?

if (image.outputFormat === 'jpeg') {
      r.background('#FFFFFF').flatten();
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions