Open git-tomas opened 1 year ago
https://github.com/php-imagine/Imagine/blob/c10ea7f80e5b93473e2390515adc3057b85e26a2/src/Utils/Matrix.php#L169-L176
The formula must be return $y * $this->width + $x;
return $y * $this->width + $x;
I think you are right. Would you mind creating a pull request (including a unit test) that fixes this issue?
https://github.com/php-imagine/Imagine/blob/c10ea7f80e5b93473e2390515adc3057b85e26a2/src/Utils/Matrix.php#L169-L176
The formula must be
return $y * $this->width + $x;