Refactor rotate modifiers to a stricter no-op version for 0 degree rotations · Issue #1544 · Intervention/image · GitHub
Skip to content

Refactor rotate modifiers to a stricter no-op version for 0 degree rotations #1544

Open

Description

@olivervogel

Currently, rotate(0) (and normalized rotate(360)) may still apply driver-specific state changes (e.g. transparency/page metadata) even when pixels do not change.

For the next major release, refactor both GD and Imagick RotateModifier implementations so zero-angle rotation is a strict no-op (no pixel changes, no metadata side effects), and update tests to reflect the new contract.

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