-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new TextClip with original text shape #2285
Comments
Hi, I absolutely hate the way textclip currently work, in my own defense text with Pillow is a pain second only to hitting your pinky in the table foot. I will try to improve things in near future, I hope I can achieve a more coherent behaviour and fix the current text cutting problem. |
Hi, making progress on that one, still some tests to run, but I think I should be able to provide a fix for the current text cutting/alignment problem in the next days. |
This issue is closely related to #2268. We're merging the discussion into that issue to keep everything organized. Please follow the updates there. |
While using version 2.x of moviepy, I noticed that the position of TextClip has changed in all videos generated using past code;
Analyzing it, I found that TextClip now uses PIL's multiline_textbbox to look for borders and weed out the excess. But then 'LINE' and 'xxxx' will not have the same shape (I mean '■■■■'), and I can't control two different pieces of text with different content to be in the same position just by using
with_position
So I'd like to be able to provide the raw image output by PIL without any complicated margin and text_size calculations, like the following:
The text was updated successfully, but these errors were encountered: