Replies: 2 comments 2 replies
-
It looks like everything is available in the Api but I want to make sure you get the same output image. Can you share your input image so I can double check this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Dirk, After lots more trial-and-error I think I got it! Here's a test image: and here's what I have now:
which gets me to this result: Thank you so much for all your effort! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this convert statement on the CLI:
How would I go about writing this in JS?
Thanks in advance!
Note: The order of things is important here: Rotate 180° needs to be done first so the polar distortion goes in the correct direction. The purpose of resize to 600%, then polar distort and then scale down to 1000x1000 is for anti-aliasing purposes (since the polar distort makes ugly pixelated images). The gravity center on a bigger canvas is for making black borders.
Beta Was this translation helpful? Give feedback.
All reactions