I’m looking for a way to mimic Photoshop’s "arc" transformation that can be applied to text. For example, I want to change this:
to this:
Possibilities I’ve considered are individually rotating, translating, and pasting letters using Pillow in such a manner that an arc is achieved, but this is a bit unwieldy. I see that Pillow also has an Image.transform
option, but I’m clueless as to how to configure the options and/or map pixels to achieve the result I’m after.
Anyone know of a good way to do this? Figured I’d ask before going too far down one of the above rabbit holes.
2
Answers
You can use
wand
. Here is a sample code.thanks to fahimnawaz7 for the answer above. I slightly modified this to allow for a transparent background and to do negative angles as well. My first submission to give back to this wonderful community 🙂