Skip to content

Documentation error: flip params are wrong #1389

@tiptronic

Description

@tiptronic

Expected Behavior

documentation should be correct

Current Behavior

Correct:
image.flip({horizontal: true, vertical: false});

Failure Information (for bugs)

documentation states:

cloned.flip(true, false);

which throws

Steps to Reproduce

try as suggested in docs:

cloned.flip(true, false);

=> throw

cloned.flip({horizontal: true, vertical: false}); // works

  • Jimp Version: 1.6
  • Node version: 20

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