kosinix / grafika

An image processing library for PHP
https://kosinix.github.io/grafika
MIT License
876 stars 93 forks source link

Seems like crop is adding the x and y offsets twice? #7

Closed HsRealDev closed 7 years ago

HsRealDev commented 7 years ago

I t seems that in Grafika/Imagick/Editor.php lines 179 and 180 X and Y offsets are added to the $x and $y params.

But it seems that the offsets are already added at Grafika/Position.php on lines 119 and 120 right? Those values are used to initialize $x and $y later in the first place.

So Grafika/Imagick/Editor.php lines 179 and 180 can be just removed?

kosinix commented 7 years ago

Thank you for reporting. You are right. Fixed