craftql
craftql copied to clipboard
Fixed `position` in image transformations
I noticed that the position value for the image transformation was not being respected. I made the updates to match the documented examples and now images are bring cropped correctly.
Hrm, I thought only the keys were used in this enum. I left the values as human-readable text to be displayed in the GraphiQL UI. Let me test this out locally before getting it merged. Thanks!
No worries. I wasn't sure so I dug around a bit and made the change locally and tested. I noticed pretty quickly that even with topLeft
it was being cropped center center, so the position value wasn't being taken into account at all.