Open matthewwithanm opened 10 years ago
After scaling or rotating the X and Y gives center bottom co ordinates. Even I am trying to re create the transformation to a svg file. Any help would be appreciated.
Were you guys able to solve the problem? What did you do in order to fix this? I'm trying to rebuild the "designed" image from the frontend via php and imagick in the backend and it's really confusing. Already tried to calculate new points via matrix calculation, but even that's not even near to correct.
I'm hoping you can provide some clarity on the data object for me.
scalex
,scaley
, andangle
are clear enough, but I can't figure out what positionsx
andy
are relative to. When the object isn't scaled or rotated, they give the position of the top left corner, but I'm not clear how the rotation and scale interact with them.Ultimately, I'm trying to figure out how—given the properties from the plugin—I can recreate the transformation with the correct position.
Thanks!